This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts is ThreadSafe" Watch "Struts is ThreadSafe" New topic

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.

Consultant, Sima Solutions
Don't get me started about those stupid light bulbs.
subject: Struts is ThreadSafe