Getting Started with Enterprise JavaBeans™

G

Session Beans

Tutorial Home Section Home Previous Next Section

Get

Get

Deploying the Rock Survey Example

     Deployment for the Rock Survey application will look very similar to Deploying the Metric Converter Example. The major differences are the names, the fact that we are using a stateful session bean, and the fact that the bean and Web components are in the same EAR. Because we will deploy several versions of this application using components with the same name, we will use Survey1 for the Application EAR, WAR, and JAR files. Here are the directions:


     The Survey1 application deployment:


     Create new application
     Create new Enterprise JavaBean component
     Create new Web component
     Deployment

     We can now actually deploy the Web component:

     The Survey1App application is deployed.


     If you look in the Survey1 folder, you will see that it now contains Survey1App.ear and Survey1AppClient.jar. To run the Survey1App, start your browser and enter http://localhost:8000/Alice. When the Alice's World home page appears, click on the "Alice's Surveys - Take 1" 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 using the URL http://localhost:8000/Survey1App, but the Done button expects to return to the home page, so you should start from there.



Tutorial Home Section Home Previous Next Section