Java 2 Platform, Enterprise Edition: Platform and Component Specifications

This section contains object interaction diagrams (OIDs) that illustrate the interaction of the classes.

EJB.6.7.1 Notes

The object interaction diagrams illustrate a box labeled "container-provided classes." These are either classes that are part of the container, or classes that were generated by the container tools. These classes communicate with each other through protocols that are container-implementation specific. Therefore, the communication between these classes is not shown in the diagrams.

The classes shown in the diagrams should be considered as an illustrative implementation rather than as a prescriptive one.

EJB.6.7.2 Creating a Session Object

Figure EJB.6-2 illustrates the creation of a session object.

Figure EJB.6-2. OID for Creation of a Session Object

EJB.6.7.3 Starting a Transaction

Figure EJB.6-3 illustrates the protocol performed at the beginning of a transaction.

Figure EJB.6-3. OID for Session Object at Start of a Transaction

EJB.6.7.4 Committing a Transaction

Figure EJB.6-4 illustrates the transaction synchronization protocol for a session object.

Figure EJB.6-4. OID for Session Object Transaction Synchronization

EJB.6.7.5 Passivating and Activating an Instance Between Transactions

Figure EJB.6-5 illustrates the passivation and reactivation of a session bean instance. Passivation typically happens spontaneously based on the needs of the container. Activation typically occurs when a client calls a method.

Figure EJB.6-5. OID for Passivation and Activation of a Session Object

EJB.6.7.6 Removing a Session Object

Figure EJB.6-6 illustrates the removal of a session object.

Figure EJB.6-6. OID for the Removal of a Session Object

Категории