Exercise 1.5: Finishing the EJB creation process

Before you begin, you must complete Exercise 1.4: Mapping entity beans to relational databases.

Exercise 1.5 explains the next steps. In this module, you will be introduced to these concepts:

The next steps

This tutorial has shown you the techniques for using UML class diagrams to create some simple CMP entity beans. However, the files created do not comprise a complete enterprise application. Some examples of enterprise applications are in the Samples Gallery (Help > Samples Gallery). A real application would also have these elements:

For this discussion, assume that you have a complete enterprise application. The next steps in the process are as follows:

  1. Deploy the enterprise application. The deployment step will package the projects into the JAR, WAR and EAR files defined by the J2EE specification. To deploy an enterprise application, follow these steps:
    1. From the Project Explorer view, highlight the UML EJB tutorial EJB project.
    2. Right-click and select Deploy.
  2. Export the EAR file following these steps:
    1. From the Project Explorer view, highlight the UML EJB tutorialEAR Enterprise Application project.
    2. Right-click and select Export > EAR file.
    3. Provide a destination directory and a name for the EAR file.
    4. Select Export source files if you want the Java source files included in the EAR file.
    5. Select Finish.
  3. Create the database tables for the test server using the .ddl file. Each database type uses a different process for running .ddl files. For instructions, consult the documentation for the type of database you are using.
  4. Test the enterprise application on the test server within the workbench. For information, consult the help topic Testing enterprise beans in the universal test client.
  5. Create the database tables for the production server using the .ddl file. Each database type uses a different process for running .ddl files. For instructions, consult the documentation for the type of database you are using.
  6. Install the EAR file on a production EJB server using the WebSphere Administrative console. Consult the WebSphere Application Server Information Center for your version of WebSphere.

Finish your tutorial by reviewing the materials in the Summary.

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.