Friday, June 15, 2012

J2EE Tutorial-14(Running the J2EE Application Client)

To run the J2EE application client, perform the following steps.

  1. In a terminal window, go to the j2eetutorial/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. Type the following command (on a single line):

       runclient -client ConverterApp.ear -name ConverterClient 
    -textauth



  5. The client container prompts you to log in. Enter guest for the user name and guest123 for the password.

  6. In the terminal window, the client displays these lines:

       Binding name:'java:comp/env/ejb/SimpleConverter'
    12160.00
    0.77
    Unbinding name:'java:comp/env/ejb/SimpleConverter'



1 comment: