Thanks a lot for this hint we found it out!!!!

Thanks Starky

---------- Initial Header -----------

>From      : "Dave Newton" [EMAIL PROTECTED]
To          : "Struts Users Mailing List" user@struts.apache.org
Cc          :
Date      : Tue, 14 Feb 2006 09:45:33 -0500
Subject : Re: Problem with Connection Pool in Action-Classes







> starki78 wrote:
> > It seems that the action is not absolutely thread safe.
> > Can this be?
> >
> Actions should never* have instance variables. You should not have a
> connection stored as an instance variable; it should be retrieved within
> a method to a method-local variable. If this is what you are doing I'm
> surprised you haven't had more issues.
>
> Think of an Action like a servlet: if you have instance variables and
> you write to them during a method and it's not synchronized you are
> probably making a mistake.
>
> * Of course, if you deal with synchronization issues, never mind. If
> it's a read-only variable it probably doesn't matter.
>
> Dave
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to