aspose file tools*
The moose likes Struts and the fly likes Is Struts Action class SingleTon? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Is Struts Action class SingleTon?" Watch "Is Struts Action class SingleTon?" New topic
Author

Is Struts Action class SingleTon?

Kousik Majumder
Ranch Hand

Joined: Sep 30, 2007
Posts: 227
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


Thanks in Advance,
Kousik
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8707
    
    6

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.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is Struts Action class SingleTon?
 
Similar Threads
question about action class
is Action Servlet is designed as a Singleton class ?why?
multithreading in struts...
Is Struts Action class Thread Safe?
Is Struts ThreadSafe