1)it will create new instance for each tread(each request eventhough from the same session) 2) It will create a instance for a session, consecutive threads from the session use the same instance 3) Since It create a new instance ,I do not worry about multithreading ?
1)it will create new instance for each tread(each request eventhough from the same session) 2) It will create a instance for a session, consecutive threads from the session use the same instance
Are you asking which one of those Struts 2 does? Every request instantiates a new action.
3) Since It create a new instance ,I do not worry about multithreading ?
In general, that's correct, as long as your actions don't have any un-synchronized static properties.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: Struts 2 action classes are not singleton