jsr369-experts@servlet-spec.java.net

[jsr369-experts] Re: [servlet-spec users] Re: Clarification of threading requirements of section 6.2.3

From: Greg Wilkins <gregw_at_intalio.com>
Date: Wed, 31 Dec 2014 17:17:59 +0100

Shing Wai,

that is a reasonable summary.

I agree the ISE is a good addition.


On 19 December 2014 at 04:23, Shing Wai Chan <shing.wai.chan_at_oracle.com>
wrote:

> Let me try to summarize the discussion.
>
> 1. There is a concern on whether FilterChain#doFilter can be called by a
> thread other than the container invocation thread.
> Similar question for RequestDispatcher#dispatch.
> 2. What is the return values of #getContextPath, #getServletPath,
> #getPathInfo in case of async?
>
>
> For (1),
> From Servlet 3.1: A Filter and the target servlet or resource at the end
> of the filter chain must execute in the same invocation thread.
> This implicitly implies that FilterChain#doFilter should not be called by
> a thread other than the container invocation thread.
> We would like to make this more explicit in the spec by adding the
> following in javadoc of FilterChain#doFilter
> @throw IllegalStateException if it is invoked by a thread other
> than the container invocation thread
>
> Any comments?
> Shing Wai Chan
>
>
>


-- 
Greg Wilkins <gregw_at_intalio.com>  @  Webtide - *an Intalio subsidiary*
http://eclipse.org/jetty HTTP, SPDY, Websocket server and client that scales
http://www.webtide.com  advice and support for jetty and cometd.