Network Deployment (Distributed operating systems), v8.0 > Develop and deploying applications > Develop Client applications > Deploy client applications > Run Java thin client applications


Run a Java thin client application on a client machine

To run a Java thin client application on a machine with Application Client for WAS installed, use the setup Client command then start the application. Before performing this task, install the Java thin application client from the Application Client for WAS installation.


Procedure

  1. Set up the client application environment. Run the setupClient command.

    (Windows)

    APP_CLIENT_ROOT\AppClient\bin\setupClient.bat
    

    (AIX) (Solaris)

    APP_CLIENT_ROOT/AppClient/bin/setupClient.sh
    
  2. Run a Java command to invoke your client application.

    (Windows)

    "%JAVA_HOME%\bin\java" %WAS_LOGGING% -Djava.security.auth.login.config="%WAS_HOME%\properties\wsjaas_client.conf"
    -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> 
    For information about IIOP and corbaloc URLs, see Develop applications that use JNDI.

    (AIX) (Solaris)

    $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> 


Java thin client
Run a Java thin client application on a server machine
Develop a Java thin client application
Develop applications that use JNDI
Install, updating, rolling back, and uninstalling the Application Client for IBM WAS

+

Search Tips   |   Advanced Search