Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is struts thread safe

 
rachana ravali
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,
I am new struts.I want to know whether struts are threadsafe and how?
please clear my doubts.
 
Murali Karthic
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can queue up the requests and use a mutex lock.
 
A Kumar
Ranch Hand
Posts: 980
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you throw some more light...
 
Naseem Khan
Ranch Hand
Posts: 809
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic