|
|||||||||
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 |
equals, 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 ClientContainerException, java.lang.IllegalArgumentException, com.ibm.etools.archive.exception.OpenFailureException, com.ibm.etools.archive.exception.NoModuleElementException, com.ibm.etools.archive.exception.SaveFailureException, 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[]
- ClientContainerException
- java.lang.IllegalArgumentException
- com.ibm.etools.archive.exception.OpenFailureException
- com.ibm.etools.archive.exception.NoModuleElementException
- com.ibm.etools.archive.exception.SaveFailureException
- 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.
Java would set the system properties
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 |