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
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 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 your enterprise beans using the universal test client
Run and debug the enterprise beans
Export your EJB project
to an EJB JAR file.
Related concepts
:
EJB 1.x - 2.x applications
EJB architecture
Annotation-based programming overview
Related tasks
:
Creating enterprise beans
Feedback