The Java EE 5 Tutorial

Running the converter Application Client Using Ant

    To run the application client using Ant, perform the following steps.

  1. In a terminal window, go to this directory:


    tut-install/javaeetutorial5/examples/ejb/converter/
  2. Type the following command:


    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 you are using Ant to run the client, this task is the equivalent of running:


    appclient -client client-jar/converterClient.jar
    
  3. In the terminal window, the client displays these lines:


    ...
    $100.00 is 11531.00 Yen.
    11531.00 Yen is 81.88 Euro.
    ...