Chapter 9 Creating J2EE Applications for IBM WebSphere 5.0


Building an EJB Project

For an EJB project, you can use WSAD to edit the Java code, and edit the deployment descriptors (add security roles, etc).

You do not need to modify the O/R mapping definition since PowerAMC generates all the O/R mapping metadata from the OOM and PDM models and PowerAMC can generate an optimized database from the PDM. If you use WSAD to generate the default O/R mapping and the database creation DDL, you will only have a default database schema that may not be optimized.

Steps To build the EJB project:

  1. Right-click the EJB project.
  2. Select Build Project or Rebuild Project.

Steps To validate the EJB project:

  1. Right-click the EJB project.
  2. Select Run Validation.

Prior to the deployment, you need to generate WebSphere server side code for EJBs implementation.

Steps To generate server side code:

  1. Right-click the EJB project.
  2. Select Generate→Deploy and RMIC Code.

    This command will run the validation, generate all the server side code and compile the code.

To deploy an EJB project, you need to use the J2EE EAR project to deploy the application.

 


Copyright (C) 2005. Sybase Inc. All rights reserved.