# // THIS PRODUCT CONTAINS RESTRICTED MATERIALS OF IBM
# // 5724-I63, 5724-H88, 5655-N01, 5733-W61 (C) COPYRIGHT International Business Machines Corp., 1997,2006
# // All Rights Reserved * Licensed Materials - Property of IBM
# // US Government Users Restricted Rights - Use, duplication or disclosure
# // restricted by GSA ADP Schedule Contract with IBM Corp.
#
# //  DESCRIPTION:
# //      Script file used to setup up environment variables used by the Java Thin Application Client
# //	    runtime.

. $(/usr/bin/dirname $0)/setupCmdLine

WAS_EXT_DIRS="${WAS_EXT_DIRS}:${USER_INSTALL_ROOT}/properties:${WAS_INSTALL_ROOT}/properties"

SERVER_ROOT=-Dserver.root=${USER_INSTALL_ROOT}
CONTEXT_FACTORY=-Djava.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory

JAVA_FLAGS_EXT="${COMMON_JAVA_FLAGS}\
 -Xbootclasspath/p:${WAS_BOOTCLASSPATH}\
 -Djava.security.properties=${SECURITY_CFG}\
 -Dsecurity.overridePropertiesFile=true\
 -Dos400.websphere.orb.properties=${WAS_INSTALL_ROOT}/properties/orb.properties\
 -Djava.ext.dirs=${JAVA_EXT_DIRS}:${WAS_EXT_DIRS}:${WAS_INSTALL_ROOT}/lib/WMQ/java/lib\
 ${SERVER_ROOT}\
 ${CONTEXT_FACTORY}\
 ${CLIENTSSL}\
 ${CLIENTSAS}"

# Export everything for convenience.  Traditionally, JAVA_FLAGS_EXT is sufficient
# for most applications.
export -s WAS_INSTALL_ROOT USER_INSTALL_ROOT WAS_EXT_DIRS CLIENTSAS CLIENTSSL CONTEXT_FACTORY SERVER_ROOT JAVA_EXT_DIRS WAS_LIB JAVA_FLAGS_EXT SECURITY_CFG WAS_CLASSPATH
