Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: Multi processor issue

Mark Thomas

2006-12-21

Replies:

Caldarale, Charles R wrote:
>> From: Mark Thomas [mailto:markt@(protected)]
>> Subject: Re: Multi processor issue
>>
>> What about RequestDispatcher ServletContext.getNamedDispatcher(String)
>>
>> Since this method is at the Context level, any RequestDispatcher
>> obtained effectively has context wide scope. It is this method that
>> the OP is using and, given the non-threadsafe nature of
>> o.a.c.core.ApplicationDispatcher, this looks like a Tomcat bug to me.
>> I haven't had a chance to see how hard it might be to fix yet.
>
> I think some Servlet spec clarification would be really helpful here.
> Unless the spec intends for there to be different flavors of
> RequestDispatcher, the apparent context-level scope seems to conflict
> with the request-specific comments I noted earlier.

I have re-read the sections of the spec you quoted several times and I
don't see anything that suggests to me that the RequestDispatcher has
only request level scope that would suggest the OPs use is invalid.
Could you elaborate?

Mark

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.