my dog learned polymorphism
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "is struts thread safe " Watch "is struts thread safe " New topic

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

Joined: May 31, 2006
Posts: 4
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.
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: 980
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:
subject: is struts thread safe
It's not a secret anymore!