Develop pluggable application client code
As you prepare to install the pluggable application client, remember that pluggable clients are only available on Windows systems.
- Install the pluggable application client from the WebSphere Application Client CD by selecting option Pluggable Application Client from the Custom client installation panel.
- Set the Java application pluggable client environment by using the setupClient shell, located in
$WAS_HOME\AppClient\bin\setupClient.bat- Add your specific Java client application JAR files to the CLASSPATH and start your Java client application from this environment, after setting the environment variables.
- Run the following Java command to invoke your client application...
%JAVA_HOME%/bin/java -Xbootclasspath/p:%WAS_BOOTCLASSPATH% -classpath <list of your application jars and classes> -Djava.ext.dirs=%WAS_EXT_DIRS% -Djava.naming.provider.url=iiop://<your WebSphere server machine name> -Djava.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory %SERVER_ROOT% %CLIENTSAS% <fully qualified class name to run>$JAVA_HOME/bin/java -Xbootclasspath/p:$WAS_BOOTCLASSPATH -classpath <list of your application jars and classes> -Djava.ext.dirs=$WAS_EXT_DIRS -Djava.naming.provider.url=iiop://<your WebSphere server machine name> -Djava.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory $SERVER_ROOT $CLIENTSAS <fully qualified class name to run>
Usage scenarioSamples GallerybasicCalculator