• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is Struts Action class SingleTon?  RSS feed

 
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: 9415
12
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!