|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.websphere.client.applicationclient.launchClient
The launchClient class is used to launch a J2EE WebSphere Application Client.
Constructor Summary | |
---|---|
launchClient()
|
Method Summary | |
---|---|
void |
launch(java.lang.String filename,
java.util.Properties p,
java.lang.String[] argv)
Launches a J2EE WebSphere Application Client. |
static void |
main(java.lang.String[] argv)
Launches a J2EE WebSphere Application Client. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public launchClient()
Method Detail |
public void launch(java.lang.String filename, java.util.Properties p, java.lang.String[] argv) throws com.ibm.websphere.client.applicationclient.ClientContainerException, java.lang.IllegalArgumentException, com.ibm.etools.archive.exception.OpenFailureException, com.ibm.etools.archive.exception.NoModuleElementException, com.ibm.etools.archive.exception.SaveFailureException, com.ibm.websphere.client.applicationclient.NoMainClassException, javax.naming.NamingException, java.io.IOException, java.util.zip.ZipException, java.lang.ClassNotFoundException, java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
The Properties parameter is for setting Application Client runtime properties. The list of valid properties is:
Here's a programming example:
FileInputStream fis = new FileInputStream("c:\\production\\myapp.properties");
Properties p = new Properties();
p.load(fis);
p.setProperty("verbose", "true");
p.setProperty("classpath", "c:\abc\def.jar;c:\mystuff.jar");
String myargs[] = {"-store=12345", "-unit=#77211", "-verbose", "minneapolis"};
launchClient lc = new launchClient();
lc.launch("c:\\production\\myapp.ear", p, myargs);
filename
- p
- argv[]
- com.ibm.websphere.client.applicationclient.ClientContainerException
- java.lang.IllegalArgumentException
- com.ibm.etools.archive.exception.OpenFailureException
- com.ibm.etools.archive.exception.NoModuleElementException
- com.ibm.etools.archive.exception.SaveFailureException
- com.ibm.websphere.client.applicationclient.NoMainClassException
- javax.naming.NamingException- Thrown
- if the J2EE name space cannot be initialized on the server.java.io.IOException
- java.util.zip.ZipException
- java.lang.ClassNotFoundException
- java.lang.NoSuchMethodException
- java.lang.IllegalAccessException
- java.lang.reflect.InvocationTargetException
- public static void main(java.lang.String[] argv)
The arguments must be in the following format:
[<userapp.ear> | -help | -?] [-CC<Property>=<value>] [application arguments]
The first argument must be the .ear file with the client application to launch,
or it can be
The list of valid
Note: There is no space between the
The first parameter (the ear file,
Here's a sample command line invocation:
java
This would launch the client application stored in c:\production\myapp.ear.
The Application Client runtime would create the following provider URL using the BootstrapHost and BootstrapPort parameters:
corbaloc:iiop:myserver.mycompany.com:904".
The arguments
Note: WebSphere provides a launchClient.bat command shell on Windows systems and a launchClient.sh command shell on Unix systems
that you can use to run the launchClient class. It is recommended you use these command shells as they
setup the java invocation with all the necessary java parameters and classpath information. The command
shells are located in the <product_installation_directory>/bin directory.
argv[]
- The list of command line arguments that were passed to the java command.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |