J2EE Generation Task List -  EJB Applications:

RAD 7.5

Background

  1. Create a Server and Server Configuration, if needed, including JAAS alias and DataSource.  Be sure JNDI name on Entity EJB Deployment Descriptor and that on DataSource match.

  2. Add to the server environment any required jar files.  These are likely to include gesgen.jar, struts.jar, and the mysql driver jar file.

Individual Project Tasks

Entity EJB Project

  1. Edit Relationships (to generate navigation methods in beans).  If no relationships, remove relationships tag in Deployment Description

  2. Generate EJB to RDB mapping:
    Be sure to specify Target DataBase, DataBase Name, and Scheme Name and that they correspond to those for or in your database.
    In the Mapping Editor, open the Table Editor and set DB column lengths and names as desired

  3. Export mapping to DB Server:
    Use Hierarchical View > DataBases
    Define Connection, if necessary.  Be sure to use the same JNDI name as specified in the Deployment Descriptor.

  4. Generate Deployment and RMIC Code

Domain Model Project

  1. Implement any non-CRUDS methods, such as Login verifyPassword.

Session EJB Project

  1. Delete and redefine References (to force JNDI binding).

  2. Generate Factory: add Access Bean (Java Bean Wrapper) to Deployment Descriptor

  3. Generate Deployment and RMIC Code

Web Project

  1. Add Struts support :

    1. Properties>Web Project Features: select Add Struts Support and Standard and Utility tag libs
    2. Override default settings:  specify package prefix for Default Java package prefix
  2. Update Struts mappings, if needed.

  3. Implement any additional views, as needed.

Deploy and Run Tasks

  1. Although you shouldn't have to do this, you may need to add to the server environment the various bin folders for the application's individual projects.