+

Search Tips   |   Advanced Search

 

Running Thin application client code on a client machine

 

This topic provides the steps necessary to run Thin application client code on a client machine. Install the Thin application client from the Application Client for WAS installation before performing this task. For more information, see Developing Thin application client code.

 

Procedure

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

    [Windows]

    app_client_root\AppClient\bin\setupClient.bat
    
    [AIX] [Linux] [HP-UX] [Solaris]

    app_client_root/AppClient/bin/setupClient.sh
    

  2. Compile your client application. Run the Java compilation command.

    [Windows]

    "%JAVA_HOME%\bin\javac" -classpath "%WAS_CLASSPATH%; 
    <list_of_your_application_jars_and_classes> " -extdirs %WAS_EXT_DIRS% 
    <your_application_class>.java
    
    [AIX] [Linux] [HP-UX] [Solaris]

    $JAVA_HOME/bin/javac -classpath "$WAS_CLASSPATH: 
    <list_of_your_application_jars_and_classes>" -extdirs $WAS_EXT_DIRS 
    <your_application_class>.java
    

    • 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%" "%CLISENTSSL%" <fully_qualified_class_name_to_run>
      
      For information on IIOP and corbaloc URLs, see Developing applications that use JNDI. [AIX] [Linux] [HP-UX] [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>
      
      For information on IIOP and corbaloc URLs, see Developing applications that use JNDI.

 

Example

View the Samples gallery for more information about the Application Client.



Thin application clients

 

Related tasks


Running Thin application client code
Developing applications that use JNDI
Running an unmanaged Web services JAX-RPC client
Use the Administration Thin Client