You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Umesh Awasthi <um...@gmail.com> on 2013/04/24 17:07:02 UTC

Thread safety of HTTP Session

Hi All,

I was going through a question over SO
<http://stackoverflow.com/questions/616601/is-httpsession-thread-safe-are-set-get-attribute-thread-safe-operations>discussing
the thread safety of the HTTP Session and than read a good description
about the same over Java theory and practice: Are all stateful Web
applications broken<http://www.ibm.com/developerworks/library/j-jtp09238/index.html>

This was a good explanation about the Session and Thread, Eventually came
across a very good implementation of Spring MVC
AbstractController.html<http://static.springsource.org/spring/docs/current/javadoc-api//org/springframework/web/servlet/mvc/AbstractController.html>
which provides a boolean variable synchronizeOnSession when this is set, it
will use a lock to ensure that only one request on a session executes
concurrently.

Just wondering is there any such functionality in Struts2 else this feature
can be provided which seems quite good.



-- 
With Regards
Umesh Awasthi
http://www.travellingrants.com/

Re: Thread safety of HTTP Session

Posted by Lukasz Lenart <lu...@apache.org>.
2013/4/24 Umesh Awasthi <um...@gmail.com>:
> Hi All,
>
> I was going through a question over SO
> <http://stackoverflow.com/questions/616601/is-httpsession-thread-safe-are-set-get-attribute-thread-safe-operations>discussing
> the thread safety of the HTTP Session and than read a good description
> about the same over Java theory and practice: Are all stateful Web
> applications broken<http://www.ibm.com/developerworks/library/j-jtp09238/index.html>
>
> This was a good explanation about the Session and Thread, Eventually came
> across a very good implementation of Spring MVC
> AbstractController.html<http://static.springsource.org/spring/docs/current/javadoc-api//org/springframework/web/servlet/mvc/AbstractController.html>
> which provides a boolean variable synchronizeOnSession when this is set, it
> will use a lock to ensure that only one request on a session executes
> concurrently.
>
> Just wondering is there any such functionality in Struts2 else this feature
> can be provided which seems quite good.

Not yet

https://issues.apache.org/jira/browse/WW-3895


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org