This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is Struts Action class SingleTon?

 
Kousik Majumder
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Can somebody tell me elaborately how struts makes itself thread safe?

Is the action class singleton? If not then the instance variables of the action class will not be thread safe.Is it so?

If action classes are singleton then how it handles multiple request making it thread safe manner?

I am confused. Please help.

Thanks in advance,

Kousik
 
Joe Ess
Bartender
Posts: 9340
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Kousik Majumder:
Hi all,
Can somebody tell me elaborately how struts makes itself thread safe?


It doesn't. Keeping actions thread-safe is dependent on the programmer. Have a look at the Action Class Design Guidelines

Originally posted by Kousik Majumder:

Is the action class singleton?

No.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic