tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 49917] Wrong invocation sequence of javax.servlet.ServletRequestListener after request
Date Sun, 12 Sep 2010 13:57:03 GMT

--- Comment #1 from Chuck Caldarale <> 2010-09-12 09:57:00
EDT ---
(In reply to comment #0)
> javax.servlet.ServletRequestListener instances are called in the same sequence
> after (requestDestroyed) the request as they are before (requestInitialized).

As stated in SRV.10.3.3 of the spec:

"The Web container registers the listener instances according to the interfaces
they implement and the order in which they appear in the deployment descriptor.
During Web application execution, listeners are invoked in the order of their

Section SRV.10.3.4 of the spec explicitly states reverse invocations is done
only for shutdown events:

"On application shutdown, listeners are notified in reverse order to their
declarations with notifications to session listeners preceeding [sic]
notifications to context listeners.  Session listeners must be notified of
session invalidations prior to context listeners being notified of application

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message