aspose file tools*
The moose likes Struts and the fly likes Struts is ThreadSafe Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts is ThreadSafe" Watch "Struts is ThreadSafe" New topic
Author

Struts is ThreadSafe

rex tony
Ranch Hand

Joined: Aug 29, 2007
Posts: 159
How can we say that Struts is ThreadSafe?
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Originally posted by rex tony:
How can we say that Struts is ThreadSafe?

You can't really say that a framework such as Struts is or isn't thread-safe. Such a statement has no meaning. An individual class can be declared thread-safe or thread-unsafe based on whether or not methods in the class can safely be called simultaneously by different threads in the same JVM and still function as they should.

Regardging thread safety, the following is a true statement:

Because the execute method in a Struts Action class can be called by multiple threads in the same JVM, the class must be coded as "thread-safe" in order to function properly.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts is ThreadSafe