>>>>> On Tue, 16 Dec 2014 10:19:55 +0100, Jozef Hartinger <jozefhartinger_at_gmail.com> said:
JH> Dear Servlet experts,
JH> the behavior of *javax.servlet.ServletRequestListener* seems to be
JH> underspecified in Servlet 3.1 especially in case of asynchronous
JH> requests. I am seeking clarification for the case that follows.
JH> There two properties of ServletRequestListener invocation that a Servlet
JH> implementation may want to have:
JH> 1) requestInitialized()/requestDestroyed() are only called once per request
JH> This one simply says that the pair of
JH> requestInitialized()/requestDestroyed() methods of a given listener is
JH> not called more than once per a given request.
JH> 2) Symmetry with respect to the calling thread
JH> This property says that if the
JH> ServletRequestListener.requestInitialized() is called by a given thread
JH> (T1) then the corresponding ServletRequestListener.requestDestroyed()
JH> invocation is performed by the same thread (T1). This second property is
JH> very important for integration with various other
JH> frameworks/technologies as it allows them to set a ThreadLocal in
JH> requestInitialized() and remove it in requestDestroyed()
I repeat earlier compliments on the clarity of this summary.
This discussion here adds to the discussion in jsr369-experts about the
clarity of section 6.2.3. I have created
<
https://java.net/jira/browse/SERVLET_SPEC-120> to cover this work.
Ed
--
| edward.burns_at_oracle.com | office: +1 407 458 0017
| 50 days til DevNexus 2015
| 60 days til JavaLand 2015
| 70 days til CONFESS 2015