Re: Struts 1 Thread safe action classes

2014-11-04 Thread Paul Benedict
> Sent: Tuesday, November 04, 2014 4:16 PM > To: Struts Users Mailing List > Subject: Re: Struts 1 Thread safe action classes > > To be thread safe, your services should never store user data in instance > variables. That's all there is to it. Keep everything local. > >

RE: Struts 1 Thread safe action classes

2014-11-04 Thread Eric Reed
, 2014 4:16 PM To: Struts Users Mailing List Subject: Re: Struts 1 Thread safe action classes To be thread safe, your services should never store user data in instance variables. That's all there is to it. Keep everything local. Cheers, Paul On Tue, Nov 4, 2014 at 3:14 PM, Sekar, Sowmya

Re: Struts 1 Thread safe action classes

2014-11-04 Thread Paul Benedict
om: Paul Benedict [mailto:pbened...@apache.org] > Sent: Tuesday, November 04, 2014 1:13 PM > To: Struts Users Mailing List > Subject: Re: Struts 1 Thread safe action classes > > Your service classes should be thread-safe to begin with. You don't need > multiple instances of a business

RE: Struts 1 Thread safe action classes

2014-11-04 Thread Sekar, Sowmya
How do I accomplish that? -Original Message- From: Paul Benedict [mailto:pbened...@apache.org] Sent: Tuesday, November 04, 2014 1:13 PM To: Struts Users Mailing List Subject: Re: Struts 1 Thread safe action classes Your service classes should be thread-safe to begin with. You don't

Re: Struts 1 Thread safe action classes

2014-11-04 Thread Paul Benedict
Your service classes should be thread-safe to begin with. You don't need multiple instances of a business service. Cheers, Paul On Tue, Nov 4, 2014 at 3:08 PM, Sekar, Sowmya wrote: > Hi, > > To invoke service classes from each method in the action classes, are > there any other options to make

Struts 1 Thread safe action classes

2014-11-04 Thread Sekar, Sowmya
Hi, To invoke service classes from each method in the action classes, are there any other options to make it thread safe other than initializing them as local variables? Thanks, Sowmya