File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is Struts Action class SingleTon?

 
Kousik Majumder
Ranch Hand
Posts: 237
  • 0
  • 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: 9214
9
Linux Mac OS X Windows
  • 0
  • 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