This section contains object interaction diagrams (OIDs) that illustrate the interaction of the classes. EJB.6.7.1 NotesThe 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 ObjectFigure 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 TransactionFigure 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 TransactionFigure 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 TransactionsFigure 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 ObjectFigure EJB.6-6 illustrates the removal of a session object. Figure EJB.6-6. OID for the Removal of a Session Object
|