You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by João Sávio <jo...@gmail.com> on 2014/11/19 14:49:08 UTC

HTTP session change is not been replicated when changing it in event processing

Hi guys

I have a Tomcat cluster with 4 nodes that is set to replicate HTTP session
across all nodes. Common session operations work fine (e.g., user perform a
request, and something is saved on the session). However, I have a
situation where the session is not replicated.

My application works with ActiveMQ events, and depending on the event,
something should be saved in the HTTP session. In these cases, the session
only changes in that node which receives the event (at the beginning only
one node receives events).

Is there a way to solve this issue without workarounds in my application?

My server.xml if you'd like to see: http://pastebin.com/FNgeemwH

Thanks
João
-- 
http://joaosavio.wordpress.com

Re: HTTP session change is not been replicated when changing it in event processing

Posted by João Sávio <jo...@gmail.com>.
Thanks!

2014-11-19 13:48 GMT-02:00 Mark Thomas <ma...@apache.org>:

> On 19/11/2014 16:32, João Sávio wrote:
> > I found the solution:
> >
> > I was updating an attribute in a session object. In that case, I need to
> > explicitly call session.setAttribute() with the updated object
>
> https://issues.apache.org/bugzilla/show_bug.cgi?id=43866
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


-- 
http://joaosavio.wordpress.com

Re: HTTP session change is not been replicated when changing it in event processing

Posted by Mark Thomas <ma...@apache.org>.
On 19/11/2014 16:32, João Sávio wrote:
> I found the solution:
> 
> I was updating an attribute in a session object. In that case, I need to
> explicitly call session.setAttribute() with the updated object

https://issues.apache.org/bugzilla/show_bug.cgi?id=43866

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: HTTP session change is not been replicated when changing it in event processing

Posted by João Sávio <jo...@gmail.com>.
I found the solution:

I was updating an attribute in a session object. In that case, I need to
explicitly call session.setAttribute() with the updated object

Thanks