The launchClient script

Use the launchClient script to start your J2EE client application. Although it is valid to run application clients with nodes in a Network Deployment environment, do not use the launchClient script in the Network Deployment installation. Instead, use the launchClient script shipped in the bin directory of the Base installation.

Product

The launchClient script is available in WAS.

Authority

To run this script, your user profile must have the following authorities:

For example, to grant all users execute (*X) authority to the /QIBM/UserData/WebAS5/Base/instance directory, run the following command from Qshell:

chmod a+x /QIBM/UserData/WebAS5/Base/instance

For details on how to assign authorities, see chmod - Change file modes Link outside Information Center in the iSeries information center.

These authorities are required for secure Web services clients:

Syntax and parameters

This is command line invocation syntax for the launchClient tool:

launchClient [-instance instance_name] [userapp.ear |-help|-?]
 [-CCname=value] [app args]

where instance_name is the name of your instance, userapp.ear is the fully-qualified path name to the EAR file that contains the application client, name is the name of the parameter, value is the value to which the parameter is set, and app args are arguments that pass to the application client.

The launchClient script requires that the first parameter is one of the following:

All other parameters are optional and can appear in any order. The application client run time ignores any optional parameters that do not begin with a -CC prefix, and passes them to the application client.

You can specify the directory for an expanded EAR file if you want to avoid extracting the EAR file (and removing the temporary directory) each time launchClient is called.

You can pass parameters to the launchClient script in these ways:

  1. From a command line
  2. From a properties file
  3. With System properties
  4. With JVM system properties

The parameters are resolved in the order listed. This prioritization allows you to set and override default values.

Supported arguments for the -CC parameter include:

Examples

These examples demonstrate the syntax of the launchClient script:

On Windows: launchClient c:\earfiles\myapp.ear -CCBootstrapHost=myWASServer -CCverbose=true app_parm1 app_parm2

On AIX or Solaris: ./launchClient.sh /usr/earfiles/myapp.ear -CCBootstrapHost=myWASServer -CCverbose=true app_parm1 app_parm2

On iSeries: /QIBM/ProdData/WebAS5/Base/bin/launchClient /home/earfiles/myapp.ear -instance myinstance -CCBootstrapHost=myWASServer -CCverbose=true app_parm1 app_parm2