Modifying the J2EE Application

The Application Server and deploytool support iterative development. Whenever you make a change to a J2EE 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>/j2eetutorial14/examples/ejb/converter/ subdirectory.
b. Type asant build.
3.
In deploytool, select Tools→Update Module Files.
4.
The Update Files dialog box appears. If the modified ...

Get The J2EE™ Tutorial Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.