EJB development and deployment process

In this section, we briefly the development and deployment cycle of an enterprise bean.

EJB development

The EJB developer provides for an enterprise bean:

  • EJB class (has to be an abstract class for container-managed persistence in EJB 2.0).

  • Home and component interface for a session and entity bean (remote or local or both).

  • Primary key class for an entity bean. If the primary key is a Java class (not a primitive type, such as int), the primary key class is optional.

The classes and interfaces are packaged in an EJB JAR file, together with an XML-based deployment descriptor.

EJB deployment

Before an enterprise bean can be installed in an application server, the enterprise bean has to be deployed. During ...

Get EJB 2.0 Development with WebSphere Studio Application Developer now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.