Java Mailing List Archive

http://www.junlu.com/

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

RE: response.reset() and forward() ... problematic? DBCP related?

Altankov Peter

2003-12-11


Antonio Fiol wrote:
>If you really cannot follow any of the above, there is still one
solution:

>- Make sure your servlet "implements SingleThreadModel". This will
>ensure a different instance is used for all concurrent requests, or
that
>no concurrent requests will occur.

>Hope that helps.

>Antonio Fiol


Either that or you can just declare your method syncrnized:

protected synchronized void forward(String s) { ....

Which ofcourse will become a bottleneck of you application during loads.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



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