Launch API


Locating source code
Reviewing coding notes

Locating source code

The source code is located in the directory.

Reviewing coding notes

This Sample demonstrates how to launch a J2EE application client from a Java application using the com.ibm.websphere.client.applicationclient.launchClient.launch() method. This method of launching a J2EE application client is useful when using the launchClient batch or script files are not possible.

This Sample consists of two parts:

The LaunchAPIMain.java Java application contains the core logic of this sample. It uses Java reflection to load the com.ibm.websphere.client.applicationclient.launchClient class and to call its launch() method. The application has been designed to take parameters from the command-line such that any application can be launched using this method. Since the launchClient script or batch file is not being used to launch the J2EE application client, it is important that the Java application (LaunchAPIMain) is started with the proper environment. The Run section of this Sample describes this environment.

The LaunchAPI.ear enterprise archive file contains a simple J2EE application client that displays a message and the parameters that were sent to it.