Running the Application Client

When you run the application client, the application client container first injects the resources specified in the client and then runs the client.

To run the application client, perform the following steps.

  1. In a terminal window, go to this directory:
  2. <INSTALL>/javaeetutorial5/examples/ejb/converter/

  3. Type the following command:
  4. ant run

    This task will retrieve the application client JAR, converterClient.jar and run the retrieved client JAR. converterClient.jar contains the application client class and the support classes needed to access ConverterBean. Although we are using ant to run the client, this task is the equivalent of running:

    appclient -client client-jar/converterClient.jar

  5. In the terminal window, the client displays these lines:
  6. ...
    $100.00 is 11531.00 Yen.
    11531.00 Yen is 81.88 Euro.
    ...