aspose file tools*
The moose likes Struts and the fly likes is struts thread safe Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "is struts thread safe " Watch "is struts thread safe " New topic
Author

is struts thread safe

rachana ravali
Ranch Hand

Joined: Jun 20, 2006
Posts: 32
Hi Friends,
I am new struts.I want to know whether struts are threadsafe and how?
please clear my doubts.
Murali Karthic
Greenhorn

Joined: May 31, 2006
Posts: 4
Hi,
Struts is framework used for developing web-tier component of a project. The core component "Action" intrenally extends HttpServlet. So, as with servlets and JSP's , Struts is also multi-threaded ie. not thread-safe
rachana ravali
Ranch Hand

Joined: Jun 20, 2006
Posts: 32
Hi Murali,
thanks for your reply.
can u please tell me how to make struts appication thread safe?
in better way.
rachana.
Dom Lassy
Ranch Hand

Joined: May 05, 2006
Posts: 181
You can queue up the requests and use a mutex lock.
A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 979
Can you throw some more light...
Naseem Khan
Ranch Hand

Joined: Apr 25, 2005
Posts: 809
Why you want to make it thread safe? I don't find any reason making it

thread safe unless you extend ActionServlet and define some instance

variable which will going to be a shared resource.


Asking Smart Questions FAQ - How To Put Your Code In Code Tags
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: is struts thread safe