Modifying the Java EE Application


The Application Server supports iterative development. Whenever you make a change to a Java EE application, you must redeploy the application.

Modifying a Class File

To modify a class file in an enterprise bean, you change the source code, recompile it, and redeploy the application. For example, if you want to change the exchange rate in the dollarToYen business method of the ConverterBean class, you would follow these steps.

1.

Edit ConverterBean.java.

2.

Recompile ConverterBean.java.

a. In a terminal window, go to the <INSTALL>/javaeetutorial5/examples/ejb/converter/ subdirectory.

b. Type ant. This runs the default task, which repackages the entire application (application client, enterprise bean JAR, and web client).

3.

Type ant deploy.

To modify the contents of a WAR file, or to modify the application client, follow the preceding steps.



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