Hi! Don't store any request related items in static or instance variables.

----- Original Message ----- 
From: "David Erickson" <[EMAIL PROTECTED]>
To: "Struts Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, December 22, 2003 1:02 PM
Subject: Example of a non-threadsafe Action?


> Hey I have been reading a lot about threading lately from the JLS and
> otherwise.. but my question is what would be an example of a
non-threadsafe
> action?  Struts manual said that only one instance of an action exists in
> the JVM.. and when I run an action each thread creates its own versions of
> all the variables within the action correct?  So assuming I'm not
accessing
> some outside 'global' variable, everything is inherintly threadsafe right?
>
> If anyone can give me an example of what 'not' to do that would help
> tremendously.
> thanks,
> David
>
>
> ---------------------------------------------------------------------
> 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