The session ownership resource adaptor type allows SLEE SBBs and SBB parts to interact with the session ownership subsystem.
API documentation for the resource adaptor type is available here.
The SLEE component identifiers of the resource adaptor type and the event types generated by it are given in the class-level documentation of the SessionOwnershipProvider interface.
An SBB or SBB part typically uses the resource adaptor type in the following sequence:
-
The component obtains a reference to a
by performing a JNDI lookup using the provider’sSessionOwnershipProvider.JNDI name -
The component obtains a reference to a
by performing a JNDI lookup using the provider’sSessionOwnershipActivityContextInterfaceFactory.JNDI name -
The
SessionOwnershipProvideris used to create a new.SessionOwnershipActivity -
Any number of store, retrieve, or delete operations are performed using the activity.
-
If the component is concerned with the results of any of the performed operations, the component:
-
uses the
SessionOwnershipActivityContextInterfaceFactoryto obtain anActivityContextInterfacefor theSessionOwnershipActivityand attaches itself to it; and -
implements event handler methods for the
orSessionOwnershipReadResultEventas necessary.SessionOwnershipWriteResultEvent
-
-
When the component has finished with the
SessionOwnershipActivity, the componentendsthe activity.
