Skip to main content

[JIRA] Created: (SERVLET_SPEC-38) Listeners were not invoked in a random order prior to Servlet 3.0 spec

  • From: "Christian Ludt (JIRA)" <jira-no-reply@...>
  • To: issues@...
  • Subject: [JIRA] Created: (SERVLET_SPEC-38) Listeners were not invoked in a random order prior to Servlet 3.0 spec
  • Date: Sun, 1 Apr 2012 14:37:36 +0000 (GMT+00:00)
  • Auto-submitted: auto-generated

Listeners were not invoked in a random order prior to Servlet 3.0 spec
----------------------------------------------------------------------

                 Key: SERVLET_SPEC-38
                 URL: http://java.net/jira/browse/SERVLET_SPEC-38
             Project: servlet-spec
          Issue Type: Bug
            Reporter: Christian Ludt
            Priority: Minor


Section _1.6.1 Listener ordering_, a subsection of _1.6 Compatibility with 
Java Servlet Specification Version 2.5_ states

{quote}
Prior to this release of the specification, listeners were invoked in a 
random order. [...]
{quote}

However, the Servlet Specification Version 2.5 already specified on page 78 
in _SRV.10.3.2 Deployment Declarations_, _SRV.10.3.3 Listener Registration_ 
and _SRV.10.3.4 Notifications At Shutdown_ that the order is taken from the 
deployment descriptor:

{quote}
*SRV.10.3.2 Deployment Declarations*
[...] [Listener classes] are listed by class name in the order in which they 
are to be invoked.
{quote}

{quote}
*SRV.10.3.3 Listener Registration*
The Web container registers the listener instances according to [...] 
the order in which they appear in the deployment descriptor. During Web
application execution, listeners are invoked in the order of their 
registration.
{quote}

{quote}
*SRV.10.3.4 Notifications At Shutdown*
On application shutdown, listeners are notified in reverse order to their 
declarations
with notifications to session listeners preceeding notifications to context 
listeners.
Session listeners must be notified of session invalidations prior to context 
listeners
being notified of application shutdown.
{quote}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[JIRA] Created: (SERVLET_SPEC-38) Listeners were not invoked in a random order prior to Servlet 3.0 spec

Christian Ludt (JIRA) 04/01/2012
 
 
Close
loading
Please Confirm
Close