The J2EETM Tutorial
Home
TOC
PREV TOC NEXT Search
Feedback

Running the J2EE Application Client

  1. In a terminal window, go to the examples/src/ejb/converter directory.
  2. Verify that this directory contains the ConverterApp.ear and ConverterAppClient.jar files.
  3. Set the APPCPATH environment variable to ConverterAppClient.jar.
  4. If the client resides on a different machine than the J2EE server, you must set the VMARGS environment variable to the following value. Replace <host> with the name of the host running the J2EE server.
    -Dorg.omg.CORBA.ORBInitialHost=<host> 
    
  5. Type the following command:
    runclient -client ConverterApp.ear -name ConverterClient 
    
  6. The client container pops open a login window. In the User Name field enter guest and in the Password field enter guest123.
  7. In the terminal window, the client displays these lines:
    Binding name:'java:comp/env/ejb/SimpleConverter'
    12160.0
    0.77
    Unbinding name:'java:comp/env/ejb/SimpleConverter' 
    
Home
TOC
PREV TOC NEXT Search
Feedback