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.

Procedure

  1. Set up the client application environment. Run the setupClient command.
    [Windows]
    app_client_root\AppClient\bin\setupClient.bat
    [AIX][Linux][HP-UX][Solaris][z/OS]
    app_client_root/AppClient/bin/setupClient.sh
    [IBM i]Use the setupClient script.
    1. Start the Qshell environment. On the CL command line, run the STRQSH command.
    2. On the Qshell command line, run the following command using the dot (.) operator:
      . app_client_root/bin/setupClient [-profileName profileName]
  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 Developing applications that use JNDI.
    [AIX][Linux][HP-UX][Solaris][z/OS]
    $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>
    [IBM i]Run the following command on the Qshell command line:
    java ${JAVA_FLAGS_EXT} -classpath "$WAS_CLASSPATH:jars_and_classes" -Djava.naming.provider.url=URL class_name app_parm

指出主題類型的圖示 作業主題



時間戳記圖示 前次更新: July 9, 2016 11:15
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=tcli_developthinclient
檔名:tcli_developthinclient.html