tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49917] Wrong invocation sequence of javax.servlet.ServletRequestListener after request
Date Sun, 12 Sep 2010 13:57:03 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49917

--- Comment #1 from Chuck Caldarale <chuck.caldarale@unisys.com> 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
registration."

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
shutdown."

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message