Developing enterprise beans
This topic describes an overall process for using the EJB tools to develop and deploy enterprise beans for use in J2EE applications.
The following steps describe a typical path through the EJB tools:
- Create an EJB project.
- Create enterprise beans or import beans to your EJB project.
- Add methods to the home and remote interfaces.
- Add custom finders or add EJBQL queries where necessary.
- Add and define additional CMP fields when necessary.
- Define relationships between beans as needed.
- Define other EJB deployment descriptor elements
- Map enterprise beans to relational database tables:
- Generate a top-down mapping (create database tables from existing beans and map them to each other)
- Generate a bottom-up mapping (create beans from a database schema and map them to each other)
- Generate a meet-in-the-middle mapping (use existing beans and tables and map them to each other)
- Update maps with the Mapping editor.
- Create session bean facades or create EJB access beans for client applications to use.
- Generate deployment code for your enterprise beans (optionally, you can generate deployment code from the command line.
- Test the enterprise beans.
- Export your EJB project to an EJB JAR file.
Related concepts
EJB application development
EJB architecture
Annotation-based programming overview
Related tasks
Creating enterprise beans