# ------------------------------------------------------------------- #
#                                                                     #
#  This file contains the environment variables used to deploy and    #
#  and run the SPECjAppServer2004 benchmark.                          #
#                                                                     #
#   Modification history:                                             #
#   Date        Author            Description                         #
#   2003/11/30  Hogstrom/IBM      Update with comments and new        #
#                                 defaults for the environment vars.  #
#   2004/02/27  Stecher/IBM       Made $JVM_OPTIONS to be passed to   #
#                                 the $JAVA command variable.         #
#   2004/04/06  Kounev/Darmstadt  Added comment about setting the     #
#                                 JDBC_CLASSPATH variable on Windows  #
#                                 Removed default 1GB driver heap     # 
#                                 size setting in JVM_OPTIONS.        #
#                                                                     #
#  -----------------------------------------------------------------  #
#                                                                     #
#  JAS_HOME  Specifies the root directory for the SPECjAppServer2004  #
#            kit.  For example, if deploying the benchmark on Windows #
#            in C:\working\SPECjAppServer2004 update the environment  #
#            variable like:                                           #
#                                                                     #
#              JAS_HOME=C:/working/SPECjAppServer2004                 #
#                                                                     #
#            Note: For users deploying on Windows you must update the #
#                  ${FS} environment variable from ':' to ';'         #
#                  otherwise you will get "Class not Found"           #
#                  Exceptions when running the scripts provided with  #
#                  this benchmark.                                    #
#                                                                     #
#  JAVA_HOME Normally the Application Server being tested provides a  #
#            JRE to run their application server.  If you choose to   #
#            use the supplied one update this environment variable to #
#            root directory for the JRE.  Otherwise, you can point to #
#            any JRE.                                                 #
#                                                                     #
#            Note: The JDK pointed to here is the one used to drive   #
#                  workload.  This can be independent of the JRE used #
#                  to start the Launcher which is started in the      #
#                  driver.sh or driver.bat scripts depending on your  #
#                  driving system.                                    #
#                                                                     #
#  J2EE_HOME The Application Server being tested should provide a     #
#            j2ee.jar.  This directory specifies the directory above  #
#            the lib directory.  The ${JAVAX_DIR} is affected by this #
#            environment setting.                                     #
#                                                                     #
#  FS        Specifies the Field Seperator for the driver system.     #
#            By default it is a colon ':'.  Windows users must change #
#            this to a semi-colon ';'.                                #
#                                                                     #
#  BIND_WAIT Specifies the number of seconds that the Launcher should #
#            wait after starting all processes to allow them to       #
#            initialize and connect to the controller.                #
#                                                                     #
#            If not specified the default is 5 seconds.               #
#                                                                     #
# ------------------------------------------------------------------- #
# JAS_HOME=/SPECjAppServer2004
# JAVA_HOME=/usr/java/jdk1.4.1
# J2EE_HOME=/yourAppServerBaseDir
JAS_HOME=/export/home/hwadams/specj04.1.00/SPECjAppServer2004
JAVA_HOME=/opt/WebSphere/AppServer/was51/sj04/b0344.02/java
J2EE_HOME=/opt/WebSphere/AppServer/was51/sj04/b0344.02
FS=:
BINDWAIT=30


# ------------------------------------------------------------------- #
#                                                                     #
#  These environment variables specify where to find the J2EE jar,    #
#  establish the CLASSPATH to be used by the driver and load scripts. #
#                                                                     #
#  Note: The Launcher (invoked in driver.sh / driver.bat) prepends    #
#        the file ${JAS_HOME}/jars/driver.jar to the beginning of the #
#        classpath so that the driver cannot be overridden.           #
#                                                                     #
#  CLASSPATH Contains the various jar files required by the driver.   #
#                                                                     #
#  JDBC_CLASSPATH Contains the JDBC driver library used for loading   #
#                 the database.                                       #
#                                                                     #
#            Note: On Windows you also need to set JDBC_CLASSPATH     #
#                  in the ${JAS_HOME}/bin/loaddb.bat script           #
#                                                                     #
#            Note: The corp.jar, mfg.jar, orders.jar and supplier.jar #
#                  are assumed to contain the stubs for the AppServer #
#                  being tested.  In most cases these are the jars    #
#                  that are created during the deployment process for #
#                  the AppServer being tested.                        #
#                                                                     #
#                  Also, the otherAppServerJars.jar should contain    #
#                  the jar(s) required for the clients to communicate #
#                  to the AppServer.                                  #
#                                                                     #
# ------------------------------------------------------------------- #
CLASSPATH=${J2EE_HOME}/lib/j2ee.jar${FS}
CLASSPATH=${CLASSPATH}${FS}${JAS_HOME}/jars/corp.jar${FS}
CLASSPATH=${CLASSPATH}${FS}${JAS_HOME}/jars/mfg.jar${FS}
CLASSPATH=${CLASSPATH}${FS}${JAS_HOME}/jars/orders.jar${FS}
CLASSPATH=${CLASSPATH}${FS}${JAS_HOME}/jars/supplier.jar${FS}
CLASSPATH=${CLASSPATH}${FS}${JAS_HOME}/jars/util.jar${FS}
# CLASSPATH=${CLASSPATH}${FS}${J2EE_HOME}/lib/otherAppServerJars.jar${FS}
CLASSPATH=${CLASSPATH}:${J2EE_HOME}/lib/naming.jar:
CLASSPATH=${CLASSPATH}:${J2EE_HOME}/lib/namingclient.jar:
CLASSPATH=${CLASSPATH}:${J2EE_HOME}/lib/ecutils.jar:
CLASSPATH=${CLASSPATH}:${J2EE_HOME}/lib/iwsorb.jar:
CLASSPATH=${CLASSPATH}:${J2EE_HOME}/lib/sas.jar:
CLASSPATH=${CLASSPATH}:${J2EE_HOME}/lib/wlmclient.jar:
CLASSPATH=${CLASSPATH}:${J2EE_HOME}/lib/activityImpl.jar:
#
CLASSPATH=${CLASSPATH}${FS}${J2EE_HOME}/properties${FS}

# JDBC_CLASSPATH= 
DB_DRIVER_PATH=/home/db2inst1/sqllib/java/db2java.zip
JDBC_CLASSPATH=${DB_DRIVER_PATH}:${J2EE_HOME}/lib/system/cloudscape.jar:${J2EE_HOME}/lib/cloudscape/RmiJdbc.jar:${J2EE_HOME}/lib/cloudscape/cloudclient.jar


# ------------------------------------------------------------------- #
#                                                                     #
#  These environment variables contain the entries for the system(s)  #
#  contained in the SUT.  They are used to identify the system that   #
#  runs the Supplier/DeliveryServlet.  They are used when creating    #
#  the ear for deployment as well as at runtime by the Audit Beans    #
#  to reset / extract log information about the number of parts       #
#  delivered by the emulator.  These parameters are used during       #
#  deployment as well as at runtime.                                  #
#                                                                     #
#  JAS_HOST   Identifies the system(s) that house the DeliveryServlet #
#             as well as specifying the DTD that the Emulator will    #
#             need to read to validate the PO XML sent as part of     #
#             Supplier interaction with the Emulator.                 #
#                                                                     #
#  JAS_PORT   The port number of the WebContainer / HTTP entry point  #
#             to the SUT.                                             #
#                                                                     #
#  JAS_PREFIX Set this to prepend a prefix for teh Web URL.  This is  #
#             not necessary in most deployments.  Provided to         #
#             improve flexibility for testing and multi-deployment.   #
#                                                                     #
#  The provided default will generate a URL such as:                  #
#                                                                     #
#        http://specdelivery:80/Supplier/dtd/po.dtd                   #
#                                                                     #
# ------------------------------------------------------------------- #
JAS_HOST=specdelivery
JAS_PORT=80
JAS_PREFIX=/


# ------------------------------------------------------------------- #
#                                                                     #
#  These environment variables contain the entries that address the   #
#  emulator.  Like the similar variables used for the SUT these       #
#  variables provide information to the SUT on how to access the      #
#  Emulator as well as for the auditing Beans to determine the number #
#  of emulator interactions.  These parameters are used during        #
#  deployment as well as at runtime.                                  #
#                                                                     #
#  EMULATOR_HOST   Specifies the name of the system that is acting as #
#                  the emulator.                                      #
#                                                                     #
#  EMULATOR_PORT   Default port for HTTP requests made to the         #
#                  Emulator.                                          #
#                                                                     #
#  EMULATOR_PREFIX used to prepend a prefix for the Emulator URL.     #
#                  this is not necessary in most deployments but is   #
#                  provided for flexibility in testing and research.  #
#                                                                     #
#  The provided default will generate a URL such as:                  #
#                                                                     #
#        http://specemulator:80/Emulator/dtd/po.dtd                   #
#                                                                     #
# ------------------------------------------------------------------- #
EMULATOR_HOST=specemulator
# EMULATOR_PORT=80
EMULATOR_PORT=9080
EMULATOR_PREFIX=/


# ------------------------------------------------------------------- #
#                                                                     #
# RMI Settings (used for the Mfg Domain only)                         #
#                                                                     #
#  NAMING_PROVIDER Identifies the URL of the Remote RMI endpoint to   #
#                  provide name resolution and to send RMI requests.  #
#                  Consult the documentation for the tested AppServer #
#                  for the correct setting.                           #
#                                                                     #
#  JNDI_CLASS      This setting (like the NAMING_PROVIDER) is unique  #
#                  to the AppServer.  Each AppServer should provide   #
#                  a class name to effect JNDI lookups.               #
#                                                                     #
# ------------------------------------------------------------------- #
# NAMING_PROVIDER=
# JNDI_CLASS=
NAMING_PROVIDER=iiop://carbon07:9809
JNDI_CLASS=com.ibm.websphere.naming.WsnInitialContextFactory


# ------------------------------------------------------------------- #
#                                                                     #
#  These settings affect the driving components of the SUT.           #
#                                                                     #
#  JVM_OPTIONS Contains JVM specific options required by the JVM      #
#              running the driving processes.                         #
#                                                                     #
#      Note: You might want to increase the heap size for the driver  #
#            JVM by setting the -Xmx and -Xms JVM_OPTIONS.            #
#                                                                     #
#  JAVA        Used by the Launcher to start the various subprocesses #
#              for the Orders Domain (HTTP) as well as the            #
#              Manufacturing Domain (RMI).                            #
#                                                                     #
# ------------------------------------------------------------------- #
# JVM_OPTIONS=
JVM_OPTIONS="-Xss128k -Xms1070m -Xmx1070m -Dcom.ibm.CORBA.FragmentSize=3000"

JAVA="${JAVA_HOME}/bin/java ${JVM_OPTIONS} -Dorg.omg.CORBA.ORBInitialHost=${JAS_HOST} -Djava.naming.factory.initial=${JNDI_CLASS} -Djava.naming.provider.url=${NAMING_PROVIDER}"
