Skip Headers

# Managing Session Events With the Session Event Manager

Previous

Next

Sessions raise session events for most session operations. Session events help you debug or coordinate the actions of multiple sessions.

The session event manager handles information about session events. Applications register session event listeners with the session event manager to receive session events.

For example, session event listeners play an important role in the configuration of isolated sessions (see "Configuring Exclusive Isolated Client Sessions for Virtual Private Database"). In an isolated session, if the TopLink runtime raises a `SessionEvent.NoRowsModified` event, it is handled by your `SessionEventListener` (see "NoRowsModifiedSessionEvent Event Handler"). This event listener is your opportunity to determine whether the update failure was due to a security violation (in which case you should not retry the operation) or due to an optimistic lock issue (in which case a retry may be appropriate). See "Logging" for information on adding logging to your event listeners.

Another example is the use of session event listeners to configure proxy authentication in an Oracle Database. (see "Configuring Oracle Database Proxy Authentication").

This section explains how to use session events, including the following:

- Session Event Manager Events

- Session Event Listeners