Java Mailing List Archive

http://www.junlu.com/

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

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

Antonio Fiol Bonnín

2003-12-11

Replies:


>So ..... what your telling me, is that it's a concurrency problem
>created by having "object attributes"? That if they were, in fact being
>called more like:
>
>  doProcess2 ();
>
>than like:
>
>  doProcess1 ();
>
>I wouldn't have these problems? Very interesting.
>
>

Not quite. I don't really understand your structue, but it seems it
needs some refactoring.

>Please write back and ensure that's what you mean ..... because I'm
>pretty sure it is. Oh, fun. Here I go to change .... some 100K lines
>of code :-)
>
>
>

As a rule of thumb, do not let your "req" and "res" leave local scope
(do not "store" them anywhere [attribute, static attribute, other
object, ...]).

If you need help with the refactoring and I can access your code, I
might help on saturday. (Which timezone do you live on?)

Yours,

Antonio Fiol

Attachment: smime.p7s
©2008 junlu.com - Jax Systems, LLC, U.S.A.