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. You can run the application client using either NetBeans 5.5 or Ant.

Running the Application Client Using NetBeans 5.5

Follow these instructions to run the application client using NetBeans 5.5.

1.

In NetBeans 5.5, make sure the converter application is open.

2.

In the Projects tab, right-click the converter project and select Run Project. You will see the following output in the Output tab:

... $100.00 is 11258.00 Yen. 11258.00 Yen is 78.81 Euro. ...


Running the Application Client Using Ant

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

1.

In a terminal window, go to this directory:

<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 we 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. ...




The JavaT EE 5 Tutorial
The JavaT EE 5 Tutorial
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 309

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net