Enterprise JavaBeans™ (EJB) 3.0

EJB 3.0 is a new standard for developing and testing enterprise beans that conform on the server side to the distributed component architecture defined in the Sun Microsystems Enterprise JavaBeans™ (EJB) 3.0 specification. Although the tools still support applications developed with the EJB 2.1 specification, the EJB 3.0 development model helps you to develop beans more simply than in the 2.1 standard.

EJB 3.0 requirements Earlier version of EJB requirements
  • Annotated bean class
  • Annotated business interface
  • Remote or local interface
  • Bean class for business logic that is required to implement:
    • Javax.ejb.SessionBean, Javax.ejb.EntityBean or Javax.ejb.MessageDrivenBean
    • Remote or local interface
    • Home interface
  • Explicit use of tools for code generation
  • Configuration of services in deployment descriptor
  • Vendor-specific files

EJB 3.0 reduces the development complexity of previous versions of Enterprise JavaBeans in the following ways:

EJB tools

From the Java EE perspective in the workbench, you can access a number of tools that help you in the creation of EJB enterprise applications.

EJB 3.0 modeling

You can use Unified Modeling Language (UML) class diagrams to model, or visually represent annotations and develop artifacts of EJB 3.0 applications in a single, tightly integrated development environment.

You can use class diagrams to model and analyze an existing EJB 3.0 application to identify its annotations, and classes, and to create a representation of the application in another form. You can use class diagrams to abstract the structural information for the application from code to a new form at a higher abstraction level. You can also modify the target application or develop and generate new applications.

From class diagrams, you can visually develop and edit the following EJB 3.0 enterprise beans:

Getting started with EJB 3.0 development

For more information on developing EJB 3.0 enterprise beans, refer to the Help (Help > Help Contents) and the Counter EJB 3.0 sample in the Samples Gallery (Help > Samples Gallery).

For more information on the WebSphere Application Server with Feature Pack for EJB 3.0, refer to WebSphere Application Server V6.1 Feature Pack for EJB 3.0 documentation.