Developing thin application client code on a client machine

Before you begin

You must install the thin application client from the WebSphere Application Client CD before performing this task. For more information, see Developing thin application client code.

Steps for this task

  1. Set the Java application thin client environment by using the setupClient shell, located in:
    Windows systems:
       install_root\AppClient\bin\setupClient.bat
    UNIX platforms:
    install_root/AppClient/bin/setupClient.sh
  2. Run the following Java compilation command to compile your client application.
    On Windows systems, enter:
    "%JAVA_HOME%\bin\javac" -classpath "%WAS_CLASSPATH%; 
    <list of your application jars and classes> " -extdirs %WAS_EXT_DIRS% 
    <your application class>.java
    On UNIX systems, enter:
    $JAVA_HOME/bin/javac -classpath "$WAS_CLASSPATH: 
    <list of your application jars and classes>" -extdirs $WAS_EXT_DIRS 
    <your application class>.java
  3. Run the following Java command to invoke your client application:
    On Windows systems, enter:
    "%JAVA_HOME%\bin\java" "-Xbootclasspath/p:%WAS_BOOTCLASSPATH%"
    -Djava.security.auth.login.config="%WAS_HOME%\properties\wsjaas_client.conf"
    -classpath "%WAS_CLASSPATH%;<list of your application jars and classes>" 
    -Djava.ext.dirs=%WAS_EXT_DIRS% -Djava.naming.provider.url=<an iiop URL or 
    a corbaloc URL to your WebSphere server machine name> 
    -Djava.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory 
    "%SERVER_ROOT%" "%CLIENTSAS%" <fully qualified class name to run>
    <your application parameters>
    On UNIX systems, enter:
    $JAVA_HOME/bin/java -Xbootclasspath/p:$WAS_BOOTCLASSPATH 
    -classpath "$WAS_CLASSPATH:<list of your application jars and classes>" 
    -Djava.ext.dirs=$WAS_EXT_DIRS -Djava.naming.provider.url=
    <an IIOP URL or a Corbaloc URL to your WebSphere server machine name> 
    -Djava.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory 
    "$SERVER_ROOT" "$CLIENTSAS" <fully qualified class name to run>
    <your application parameters>
    For more information on IIOP and corbaloc URLs, see Developing applications that use JNDI.

Example

Samples gallery

These samples do not include client applications that communicate with Enterprise server-side examples.


Related tasks
Developing thin application client code
Developing applications that use JNDI
Related reference
Thin application clients



Searchable topic ID:   tcli_developthinclient
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/ae/tcli_developthinclient.html

Library | Support | Terms of Use | Feedback