- Advantages of CMP Entity Beans over BMP Entity Beans
- CMP 2.0 Entity Bean Sample Application
- Step 1: Implementing the CMP 2.0 Address Entity Bean
- Step 2: Implementing the CMP 2.0 Roster Entity Bean
- Step 3: Implementing the CMP 2.0 Student Entity Bean
- Step 4: Implementing JSP Clients to Test CMP 2.0 Entity Beans
- Step 5: Packaging the CMP 2.0 Entity Beans as an ejb-jar File
- Step 6: Packaging the JSP As a Web Component
- Step 7: Deploying the CMP 2.0 Entity Bean Sample Application
- Step 8: Testing the Sample Application
- A Discussion of the Deployment Descriptor
Step 7: Deploying the CMP 2.0 Entity Bean Sample Application
We're ready to deploy the sample application, now that we've packaged the EJB and Web components into a deployable CMP20App.ear file.
Select the CMP20App icon and select Tools|Deploy to bring up the Deploy window. Select CMP20App under Object to Deploy; enter localhost under Target Server; and check Save Object Before Deploying (see Figure 11-24). Click Next.
Figure 11-24 Deploying the application
Verify that the JNDI names are correctly set, as shown in Figure 11-25. Click Next.
Figure 11-25 Verifying the JNDI names
Under the ContextRoot column in the pop-up window, enter /cmp3 and then click Finish. The Deployment Progress window message appears. If deployment is successful, the message changes to Deployment of CMP20App is Complete. Click OK. (See the Appendix to this book for a description of possible common errors and how to fix them.)