Getting Started with Enterprise JavaBeans™

G

Session Beans

Tutorial Home Section Home Previous Next

Get

Get

Deploying the Metric Converter Example

     If you deployed the Alice's World page (Appendix C: About the Example Applications), you have an idea of the steps involved in deployment. If you haven't, you should do so now because the Metric Converter application expects to return to that page. We are going to go through the deployment process step by step for both the Enterprise JavaBean and the Web component here. For the other examples, I recommend that you copy the .ear file from the associated prod directory, open it in deploytool and deploy from that (meaning, start at the sections labeled Deployment), unless you want more deployment practice. Another good way to practice is to copy an application directory to one of your own, then create the application from scratch with a new name, using the original .ear file for reference.


     The MetricCvtBean deployment:

     Create new application
     Create new Enterprise JavaBean component
     Deployment

     All of the preceding has been set up for the deployment descriptors. We can now actually deploy the bean:

     The MetricCvt Enterprise JavaBean component is deployed.



     The Metric Converter Web component deployment


     Create new application
     Create new Web component
     Deployment

     We can now actually deploy the Web component:

     The MetricCvtApp Web component is deployed.


     If you look in the MetricCvt folder, you will see that it now contains MetricCvt.ear, MetricCvtApp.ear, and MetricCvtClient.jar. To run MetricCvtApp, start your browser and enter http://localhost:8000/Alice. When the Alice's World home page appears, click on the "Alice's Metric Converter" link. The JSP must be compiled, so the first run will appear to take a while to load. You can also run the application by entering http://localhost:8000/MetricCvtApp, but the Done button expects to return to the home page, so you should start from there.



Tutorial Home Section Home Previous Next