This topic provides the steps necessary to run Thin application client code on a server machine.
app_server_root\bin\setupCmdLine.bat
profile_root/bin/setupCmdLine.sh
. app_server_root/bin/setupClient [-profileName profileName]
"%JAVA_HOME%\bin\javac" -classpath "%WAS_CLASSPATH%; <list_of_your_application_jars_and_classes> " -extdirs %WAS_EXT_DIRS% <your_application_class>.java
$JAVA_HOME/bin/javac -classpath "$WAS_CLASSPATH: <list_of_your_application_jars_and_classes>" -extdirs $WAS_EXT_DIRS <your_application_class>.java
javac -J-Djava.version=1.5 -classpath "$WAS_CLASSPATH:jars_and_classes" -extdirs $WAS_EXT_DIRS app_class.java
<property environment="env"/> <java classname="fully_qualified_class_name_to_run" fork="true"> <jvm line="${env.WAS_LOGGING}"/> <sysproperty key="java.security.auth.login.config" value="${env.USER_INSTALL_ROOT}/properties/wsjaas_client.conf"/> <sysproperty key="java.ext.dirs" path="${env.JAVA_HOME}/jre/lib/ext: ${env.WAS_EXT_DIRS}:${env.WAS_HOME}/plugins:${env.WAS_HOME}/ lib/WMQ/java/lib"/> <sysproperty key="java.naming.provider.url" value="an_IIOP_URL_or_a_corbaloc_URL_to_your application_server_machine_name"/>--> <sysproperty key=java.naming.factory.initial value="com.ibm.websphere.naming.WsnInitialContextFactory"/> <sysproperty key="server.root" file="${env.WAS_HOME}"/> <jvmarg value="${env.CLIENTSAS}"/> <jvmarg value="${env.CLIENTSSL}"/> <jvmarg line="${env.USER_INSTALL_PROP}"/> <classpath> <pathelement path="${env.WAS_CLASSPATH}"/> <classpath> <arg value="fully_qualified_class_name_to_run"/> </java> path="${env.JAVA_HOME}/jre/lib/ext:${env.WAS_EXT_DIRS}:${env.WAS_HOME}/plugins:${env.WAS_HOME}/lib/WMQ/java/lib"/> <classpath> <pathelement path="${env.WAS_CLASSPATH}"/> </java>
"%JAVA_HOME%\bin\java" %WAS_LOGGING%" -Djava.security.auth.login.config="%USER_INSTALL_ROOT%\properties\wsjaas_client.conf" -Djava.ext.dirs="%JAVA_HOME%\jre\lib\ext;%WAS_EXT_DIRS%;%WAS_HOME%\plugins;%WAS_HOME%\lib\WMQ\java\lib" -Djava.naming.provider.url=<an_IIOP_URL_or_a_corbaloc_URL_to_your application_server_machine_name> -Djava.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory -Dserver.root="%WAS_HOME%" "%CLIENTSAS%" "$CLIENTSSL" %USER_INSTALL_PROP% -classpath "%WAS_CLASSPATH%;<list_of_your_application_jars_and_classes>" <fully_qualified_class_name_to_run> <your_application_parameters>For more information on IIOP and corbaloc URLs, see Developing applications that use JNDI.
"%JAVA_HOME%\bin\java" %WAS_LOGGING% -Djava.security.auth.login.config="%USER_INSTALL_ROOT%\properties\wsjaas_client.conf" -classpath "%WAS_CLASSPATH%;<list_of_your_application_jars_and_classes> -Djava.ext.dirs="%WAS_EXT_DIRS%;%WAS_HOME%\plugins" -Djava.endorsed.dirs="%WAS_ENDORSED_DIRS% -Djava.naming.provider.url=iiop://<your_application_server_machine_name> -Djava.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory %SERVER_ROOT% %CLIENTSAS% %CLISENTSSL% <fully_qualified_class_name_to_run>
"$JAVA_HOME/bin/java" $WAS_LOGGING -Djava.security.auth.login.config="$USER_INSTALL_ROOT/properties/wsjaas_client.conf" -Djava.ext.dirs="$JAVA_HOME/jre/lib/ext:$WAS_EXT_DIRS:$WAS_HOME/plugins: $WAS_HOME/lib/WMQ/java/lib" -Djava.naming.provider.url=<an_IIOP_URL_or_a_corbaloc_URL_to_your application_server_machine_name> -Djava.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory -Dserver.root="$WAS_HOME" $USER_INSTALL_PROP "$CLIENTSAS" "$CLIENTSSL" "$JVM_EXTRA_CMD_ARGS" -classpath "$WAS_CLASSPATH:<list_of_your_application_jars_and_classes>" <fully_qualified_class_name_to_run> <your_application_parameters>For more information on IIOP and corbaloc URLs, see Developing applications that use JNDI.
"$JAVA_HOME/bin/java" $WAS_LOGGING -Djava.security.auth.login.config="$USER_INSTALL_ROOT/properties/wsjaas_client.conf" "-Dws.ext.dirs=<list_of_your_application_jars_and_classes> $WAS_EXT_DIRS:$WAS_USER_DIRS" -Djava.naming.provider.url=<an_IIOP_URL_or_a_corbaloc_URL_to_your application_server_machine_name> -Djava.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory "-Dserver.root=$WAS_HOME" "$CLIENTSAS" "$CLIENTSSL" "$JVM_EXTRA_CMD_ARGS" $USER_INSTALL_PROP -classpath "$WAS_CLASSPATH" com.ibm.ws.bootstrap.WSLauncher <fully_qualified_class_name_to_run> <your_application_parameters>
java ${JAVA_FLAGS_EXT} -classpath "$WAS_CLASSPATH:jars_and_classes" -Djava.naming.provider.url=URL class_name app_parmWhen using the WebSphere Application Server launcher, run the following command on a Qshell command line:
java ${JAVA_FLAGS_EXT} -classpath "$WAS_CLASSPATH:jars_and_classes" -Djava.naming.provider.url=URL com.ibm.ws.bootstrap.WSLauncher class_name app_parm
View the Samples gallery for more information about the Application Client.
In this information ...Related concepts
| IBM Redbooks, demos, education, and more(Index) Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience. This feature requires Internet access. Most of the following links will take you to information that is not part of the formal product documentation and is provided "as is." Some of these links go to non-IBM Web sites and are provided for your convenience only and do not in any manner serve as an endorsement by IBM of those Web sites, the material thereon, or the owner thereof. |