# Generic environment needed for the apps server
JAS_HOME=/opt/SPECjAppServer2004
JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.171-2.6.13.2.el7.aarch64
FS=:
BINDWAIT=45

J2EE_HOME=/opt/glassfish4/glassfish
J2EE_JARS=${J2EE_HOME}/lib
JAS_ADMIN_PORT=4848
J2EE_INSTANCE=server

DB_HOST=specdb
#JDBC_CLASSPATH=/opt/glassfish3/glassfish/lib/postgresql-9.2-1002.jdbc4.jar
JDBC_CLASSPATH=/opt/glassfish4/glassfish/lib/postgresql-9.3-1100.jdbc4.jar

# Environment needed for the driver
CLASSPATH=${JAS_HOME}/jars/corp.jar${FS}${JAS_HOME}/jars/mfg.jar${FS}${JAS_HOME}/jars/orders.jar${FS}${JAS_HOME}/jars/supplier.jar${FS}${JAS_HOME}/jars/util.jar${FS}${J2EE_JARS}/appserv-rt.jar${FS}${J2EE_JARS}/javaee.jar

# Additional environment needed for make
JAVAX_JAR=${J2EE_JARS}/appserv-rt.jar:${J2EE_JARS}/javaee.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=specdelivery
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=specemulator
EMULATOR_PORT=8080
EMULATOR_PREFIX=/

#
# AppServer Environment variables for JNDI provider and classes
#
IIOP_PORT=3700
NAMING_PROVIDER=iiop://${JAS_HOST}:${IIOP_PORT}
IIOP_ENDPOINTS=${JAS_HOST}:${IIOP_PORT}

JAVA="$JAVA_HOME/bin/java -server -XX:+DisableExplicitGC -Xmx512m -Xss512k -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=${JAS_HOST} -Dorg.omg.CORBA.ORBInitialPort=${IIOP_PORT} -Dnetworkaddress.cache.ttl=0 -Dsun.net.inetaddr.ttl=0 "

# 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 J2EE_HOME
