6.4.4 Listeners that operate in association with events occurring in the database session failover functionality
When using the database session failover functionality, the sessionDidActivate() method in the javax.servlet.http.HttpSessionActivationListener interface is invoked when inheriting of a global session occurs. In that case, the sessionCreated() method in the javax.servlet.http.HttpSessionListener interface is not invoked.
With processing using an HTTP session, the listeners associated with the HTTP session corresponding to events stipulated in Java EE operate. Listeners associated with an HTTP session are the classes that implement the following interfaces:
-
javax.servlet.http.HttpSessionListener
-
javax.servlet.http.HttpSessionActivationListener
-
javax.servlet.http.HttpSessionAttributeListener
-
javax.servlet.http.HttpSessionBindingListener
When using the database session failover functionality, listeners associated with an HTTP session operate with events in the database session failover functionality as key factors.
The following table describes mapping among events stipulated in Java EE, events that occur in the database session failover functionality, and listeners that operate with events as key factors.
Other listeners operate in the same way as cases in which the database session failover functionality is not used.