Developing enterprise beans

This topic describes an overall process for using the EJB 2.x tools to develop and deploy enterprise beans for use in Java™ EE applications.

Before you begin

Procedure

  1. Create an EJB project.
  2. Create enterprise beans or import beans to your EJB project.
  3. Add methods to the home and remote interfaces.
  4. Add custom finders or add EJBQL queries where necessary.
  5. Add and define additional CMP fields when necessary.
  6. Define relationships between beans as needed.
  7. Define other EJB deployment descriptor elements.
  8. Map enterprise beans to relational database tables:
  9. Update maps with the Mapping editor.
  10. Create EJB access beans for client applications to use.
  11. Generate deployment code for your enterprise beans (optionally, you can generate deployment code from the command line.
  12. Test your enterprise beans using the universal test client
  13. Run and debug the enterprise beans
  14. Export your EJB project to an EJB JAR file.

Feedback