1. Created an environment file in the config directory called sjsas_pe.env
   modeled after the file default.env.
2. Updated sjsas_pe.env  with location information for Sun Java System
   Application Server, ports, and hostnames for the deployment.
3. Create the ear file using build_sjsas.xml and copy to each Appserver.
4. Create a domain & start domain:
   - $INSTALL_ROOT/bin/asadmin create-domain --adminuser $ADMIN_USERNAME --adminpassword $ADMIN_PASSWORD --adminport $ADMIN_PORT --instanceport $SERVER_PORT $DOMAIN
   - $INSTALL_ROOT/bin/asadmin start-domain --user $ADMIN_USERNAME --password $ADMIN_PASSWORD $DOMAIN

5. Configure JDBC resources and Persistence manager

DBCLASSNAME=com.mysql.jdbc.jdbc2.optional.MysqlDataSource
DBRESTYPE=javax.sql.DataSource

   - $INSTALL_ROOT/bin/asadmin create-jdbc-connection-pool $ASADMIN_ARGS --datasourceclassname $DBCLASSNAME --restype $DBRESTYPE $CONNECTION_POOL 
   - $INSTALL_ROOT/bin/asadmin set $ASADMIN_ARGS domain.resources.jdbc-connection-pool.$CONNECTION_POOL.property.User=$DBUSER
   - $INSTALL_ROOT/bin/asadmin set $ASADMIN_ARGS domain.resources.jdbc-connection-pool.$CONNECTION_POOL.property.Password=$DBPASSWD
   - $INSTALL_ROOT/bin/asadmin set $ASADMIN_ARGS domain.resources.jdbc-connection-pool.$CONNECTION_POOL.property.serverName=$DBHOST
   - $INSTALL_ROOT/bin/asadmin set $ASADMIN_ARGS domain.resources.jdbc-connection-pool.$CONNECTION_POOL.property.portNumber=$DBPORT
   - $INSTALL_ROOT/bin/asadmin set $ASADMIN_ARGS domain.resources.jdbc-connection-pool.$CONNECTION_POOL.property.DatabaseName=specdb

   - $INSTALL_ROOT/bin/asadmin create-jdbc-resource $ASADMIN_ARGS --connectionpoolid $CONNECTION_POOL jdbc/SPECDB

   - $INSTALL_ROOT/bin/asadmin create-persistence-resource $ASADMIN_ARGS jdo/specj
   - $INSTALL_ROOT/bin/asadmin set $ASADMIN_ARGS domain.resources.persistence-manager-factory-resource.jdo/specj.factory-class=com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerFactoryImpl

   - $INSTALL_ROOT/bin/asadmin set $ASADMIN_ARGS domain.resources.persistence-manager-factory-resource.jdo/specj.jdbc-resource-jndi-name=jdbc/SPECDB

6. Create JMS Resources:

   - $INSTALL_ROOT/bin/asadmin create-jms-resource $ASADMIN_ARGS --restype javax.jms.QueueConnectionFactory jms/QueueConnectionFactory
   - $INSTALL_ROOT/bin/asadmin create-jms-resource $ASADMIN_ARGS --restype javax.jms.Queue --property imqDestinationName=BuyerQueue jms/BuyerQueue
   - $INSTALL_ROOT/bin/asadmin create-jms-resource $ASADMIN_ARGS --restype javax.jms.Queue --property imqDestinationName=FulfillOrderQueue jms/FulfillOrderQueue
   - $INSTALL_ROOT/bin/asadmin create-jms-resource $ASADMIN_ARGS --restype javax.jms.Queue --property imqDestinationName=LargeOrderQueue jms/LargeOrderQueue
   - $INSTALL_ROOT/bin/asadmin create-jms-resource $ASADMIN_ARGS --restype javax.jms.Queue --property imqDestinationName=ReceiveQueue jms/ReceiveQueue

7. Setup parameters

   - $INSTALL_ROOT/bin/asadmin set $ASADMIN_ARGS server.java-config.classpath-prefix="$JDBC_CLASSPATH"
   - $INSTALL_ROOT/bin/asadmin set $ASADMIN_ARGS server.thread-pools.thread-pool.thread-pool-1.idle_thread_timeout_in_seconds="3600"
   - $INSTALL_ROOT/bin/asadmin delete-jvm-options $ASADMIN_ARGS -- "-XX\:NewRatio=2"
   - $INSTALL_ROOT/bin/asadmin delete-jvm-options $ASADMIN_ARGS -- "-client"
   - $INSTALL_ROOT/bin/asadmin delete-jvm-options $ASADMIN_ARGS -- "-Djava.security.policy=\$\{com.sun.aas.instanceRoot\}/config/server.policy"
   - $INSTALL_ROOT/bin/asadmin create-jvm-options $ASADMIN_ARGS -- "-server"
   - $INSTALL_ROOT/bin/asadmin set $ASADMIN_ARGS server.ejb-container.steady_pool_size=0
   - $INSTALL_ROOT/bin/asadmin set $ASADMIN_ARGS server.ejb-container.max_pool_size=0
   - $INSTALL_ROOT/bin/asadmin set $ASADMIN_ARGS server.ejb-container.pool-idle-timeout-in-seconds=3600
   - $INSTALL_ROOT/bin/asadmin set $ASADMIN_ARGS server.ejb-container.cache-resize-quantity=0
   - $INSTALL_ROOT/bin/asadmin set $ASADMIN_ARGS server.ejb-container.cache-idle-timeout-in-seconds=7200
   - $INSTALL_ROOT/bin/asadmin set $ASADMIN_ARGS server.mdb-container.idle-timeout-in-seconds=3600$INSTALL_ROOT/bin/asadmin set $ASADMIN_ARGS server.mdb-container.max-pool-size=256
   - $INSTALL_ROOT/bin/asadmin set $ASADMIN_ARGS server.mdb-container.steady-pool-size=256
   - $INSTALL_ROOT/bin/asadmin set server.admin-service.das-config.autodeploy-enabled=false

8. Deploy the ear file

   - $INSTALL_ROOT/bin/asadmin deploy $ASADMIN_ARGS --name SPECjAppServer /export/ecperf/SPECjAppServer2004/jars/$EARFILE
   - $INSTALL_ROOT/bin/asadmin stop-domain $DOMAIN

9. Restart the appserver
