| Author |
Struts 2 actions and thread safety
|
Priety Sharma
Ranch Hand
Joined: Jun 10, 2008
Posts: 156
|
|
Are the struts 2.x actions thread safe?
|
Priety.
|
 |
Tom Rispoli
Ranch Hand
Joined: Aug 29, 2008
Posts: 349
|
|
|
Yes, its thread safe, struts2 creates a new instance of the action class for every request that it processes. So unless you've written something special to make an instance of of an action class created by one thread, accessible by another thread, you don't need to worry about other threads modifying the values in your action class.
|
 |
 |
|
|
subject: Struts 2 actions and thread safety
|
|
|