jsr340-experts@servlet-spec.java.net

[jsr340-experts] Re: [servlet-spec users] Re: SERVLET_SPEC-19

From: Rémy Maucherat <rmaucher_at_redhat.com>
Date: Tue, 12 Feb 2013 23:00:19 +0100

On 02/12/2013 08:46 PM, Mark Thomas wrote:
> That is a question for the CDI folks. They needed something.
>
> Tomcat put in a container specific option to address the original
> problem. If CDI needs a hook then it seems better to use a spec provided
> hook. If a Filter will work then great. If not, I think we need to add
> something.
In the cases mentioned in the JIRA, the request is always coming from
outside of the current webapp scope, so I think
requestInitialized/Destroyed should be invoked. This should apply to
cross context, and error page processing.

However, this is not quite the end of the story, as this needs a
request. There's also a need to associate the thread during things like
background processing where there is no active request, and IMO that's
where a new listener could be useful.

Rémy