Running a Java thin client application on a client machine

To run a Java™ thin client application on a machine with Application Client for WebSphere® Application Server installed, use the setup Client command then start the application.

Before you begin

Before performing this task, you must install the Java thin application client from the Application Client for WebSphere Application Server installation. For more information, see Installing Application Client for WebSphere Application Server.

Procedure

  1. Set up the client application environment. Run the setupClient command.
    app_client_root/AppClient/bin/setupClient.sh
  2. Run a Java command to invoke your client application.
    $JAVA_HOME/bin/java $WAS_LOGGING 
    -classpath "$WAS_CLASSPATH: <list_of_your_application_jars_and_classes>" 
    -Djava.ext.dirs=$JAVA_JRE/lib/ext:$WAS_EXT_DIRS:$WAS_HOME/plugins:$WAS_HOME/lib/WMQ/java/lib"
    -Djava.naming.provider.url=iiop://<your_application_server_machine_name> 
    -Djava.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory 
    $SERVER_ROOT $CLIENTSAS $CLIENTSSL <fully_qualified_class_name_to_run>

Example

For examples of running Java thin client applications, see the Samples gallery.




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.

Task topic    

Terms of Use | Feedback

Last updated: Oct 22, 2010 12:21:29 AM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=compass&product=was-nd-zos&topic=tcli_developthinclient
File name: tcli_developthinclient.html