|
Home TOC Index |
|
Search
Feedback |
runclient Script
To run a J2EE application client, you execute the
runclientscript from a command-line prompt.Syntax
runclient -client <appjar> [-name <name>] [-textauth] [app-args]
Example
Before executing the
runclientcommand, you must set theAPPCPATHenvironment variable to the name of the client JAR stub file that is generated during deployment. The following example shows how to setAPPCPATHon a Windows machine. Therunclientcommand that follows launches a client namedFabulousClient. The J2EE application of this client resides in theFabulousApp.earfile.set APPCPATH=FabulousAppClient.jar runclient -client FabulousApp.ear -name FabulousClientAccessing a Remote Server
If the J2EE application client will reside on a different machine than the J2EE server, before executing
runclientyou must do the following:
- Install the J2EE SDK on the remote client's machine. The SDK must be on the client's machine so that you can run its
runclientscript. You do not need to start the J2EE server on the client's machine.- Copy the EAR file to the remote client's machine.
- Copy the client JAR stub file to the remote client's machine.
- Set the
APPCPATHenvironment variable to the name of the client JAR stub file.- Set the
VMARGSenvironment variable to the following value:-Dorg.omg.CORBA.ORBInitialHost=<remote-host>
- For example, if the remote host were named
murphy, you would set theVMARGSvariable on a Windows machine as follows:set VMARGS=-Dorg.omg.CORBA.ORBInitialHost=murphyPreventing the User Name and Password Prompts
During iterative development, you may find it convenient to prevent the client container from prompting for the user name and password. To prevent these prompts, set the
VMARGSenvironment variable to the following value:-Dj2eelogin.name=guest -Dj2eelogin.password=guest123
|
Home TOC Index |
|
Search
Feedback |