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.
Add to the server environment any required jar files. These are likely to include gesgen.jar, struts.jar, and the mysql driver jar file.
Entity EJB Project
Edit Relationships (to generate navigation methods in beans). If no relationships, remove relationships tag in Deployment Description
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 desiredExport 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.Generate Deployment and RMIC Code
Domain Model Project
Implement any non-CRUDS methods, such as Login verifyPassword.
Session EJB Project
Delete and redefine References (to force JNDI binding).
Generate Factory: add Access Bean (Java Bean Wrapper) to Deployment Descriptor
Generate Deployment and RMIC Code
Web Project
Add Struts support :
- Properties>Web Project Features: select Add Struts Support and Standard and Utility tag libs
- Override default settings: specify package prefix for Default Java package prefix
Update Struts mappings, if needed.
Implement any additional views, as needed.
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.