# Generic environment needed for the apps server
JAS_HOME=/export/home/spec/SPECjAppServer2004
JAVA_HOME=/export/VMs/jdk1.5.0_06

SE_HOME=/export/appservers/sjsas-pe
S1AS_JARS=${SE_HOME}/lib
JAS_ADMIN_PORT=4848
S1AS_INSTANCE=server

# Environment needed for the driver
CLASSPATH=${JAS_HOME}/classes:${S1AS_JARS}/appserv-rt.jar:${S1AS_JARS}/appserv-ext.jar:${S1AS_JARS}/appserv-admin.jar:${S1AS_JARS}/j2ee.jar

BINDWAIT=45

# Environment needed for the DB loader
JDBC_CLASSPATH=/export/home/spec/jdbc/mysql-connector-java-3.1.12-bin.jar

# Additional environment needed for make
JAVAX_JAR=${S1AS_JARS}/appserv-rt.jar:${S1AS_JARS}/appserv-ext.jar:${S1AS_JARS}/appserv-admin.jar:${S1AS_JARS}/j2ee.jar

# The following variables specify the URL of the 
# server in which the SPECjAppServer beans are deployed
# JAS_PREFIX used to access the Web components 
# For Example DeliveryServlet. Default is /
JAS_HOST=sjapps
JAS_MULTI_HOST=sjapps
JAS_PORT=8000
JAS_PREFIX=/

# The following variables specify the URL of the server
# in which the Supplier Emulator is deployed
# EMULATOR_PREFIX used to access the Web components 
# For Example EmulatorServlet. Default is /
EMULATOR_HOST=emulator
EMULATOR_PORT=8080
EMULATOR_PREFIX=/

#
# AppServer Environment variables for JNDI provider and classes
#
IIOP_PORT=3700
NAMING_PROVIDER=iiop://sjapps:${IIOP_PORT}
#NAMING_PROVIDER=iiop://sjapps1:${IIOP_PORT}
JNDI_CLASS=com.sun.appserv.naming.S1ASCtxFactory
#IIOP_ENDPOINTS=${JAS_MULTI_HOST}:${IIOP_PORT}
#IIOP_ENDPOINTS=sjapps1:${IIOP_PORT}
#IIOP_ENDPOINTS=sjapps1:${IIOP_PORT},sjapps2:${IIOP_PORT},sjapps3:${IIOP_PORT}
IIOP_ENDPOINTS=sjapps1:${IIOP_PORT},sjapps2:${IIOP_PORT},sjapps3:${IIOP_PORT}

JAVA="$JAVA_HOME/bin/java -server -XX:+DisableExplicitGC -Xmx2048m -Xss128k -Djava.naming.factory.initial=${JNDI_CLASS} -Djava.naming.provider.url=${NAMING_PROVIDER} -Djava.naming.provider.url.pkgs=com.sun.enterprise.naming -Dcom.sun.appserv.iiop.endpoints=${IIOP_ENDPOINTS} -Dorg.omg.CORBA.ORBInitialHost=sjapps -Dorg.omg.CORBA.ORBInitialPort=3700 -Dnetworkaddress.cache.ttl=0 -Dsun.net.inetaddr.ttl=0"

#-Djava.naming.factory.initial=com.sun.appserv.naming.S1ASCtxFactory
#-Djava.naming.provider.url=iiop://${j2ee_host}:${j2ee_orb_port}
#-Djava.naming.provider.url.pkgs=com.sun.enterprise.naming
#-Dcom.sun.appserv.iiop.endpoints=${_endpoints}
#-Dorg.omg.CORBA.ORBInitialHost=${_instance}
#-Dorg.omg.CORBA.ORBInitialPort=${j2ee_orb_port}


# We need to export all variables needed by make
export JAS_HOME JAVA_HOME JAVAX_JAR JAS_HOST JAS_PORT EMULATOR_HOST EMULATOR_PORT LD_LIBRARY_PATH CLASSPATH JAS_MULTI_HOST



#JAVA="$JAVA_HOME/bin/java -server -XX:+DisableExplicitGC -Xmx2048m -Xss128k -Djava.naming.factory.initial=${JNDI_CLASS} -Djava.naming.provider.url=${NAMING_PROVIDER} -Djava.naming.provider.url.pkgs=com.sun.enterprise.naming -Dcom.sun.appserv.iiop.orbconnections=5 -Dcom.sun.appserv.iiop.endpoints=${IIOP_ENDPOINTS} -Dorg.omg.CORBA.ORBInitialHost=sjapps -Dorg.omg.CORBA.ORBInitialPort=3700 -Dnetworkaddress.cache.ttl=0 -Dsun.net.inetaddr.ttl=0"
