You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by sanjeevtarar <sa...@indiatimes.com> on 2008/04/16 12:23:38 UTC

Re: sessionListener.sessionDestroyed is called on shutdown of a node in the cluster

Hello,

I have the same problem.....
please let me know if you have got any solution to this.


sanjeev 



Ronald Klop wrote:
> 
> In sessionDestroyed I register the user as logged out.
> 
> How can I know if sessionDestroyed is called from session.invalidate()
> from the real expiration of the session or shutdown of one cluster node?
> 
> 
> Ronald.
> 
> On Thu Mar 20 17:40:26 CET 2008 Tomcat Users List
> <us...@tomcat.apache.org> wrote:
>> It's expected behavior, sessions will always expire on the local node 
>> during a graceful shutdown.
>> 
>> expireSessionsOnShutdown="false" simply means that we don't expire 
>> sessions in the remote nodes
>> 
>> Filip
>> 
>> 
>> Ronald Klop wrote:
>> > Hello,
>> >
>> > When I shutdown a node in my cluster (tomcat 5.5.26) sessionDestroyed 
>> > is called on all SessionListeners on that node.
>> > But I'm running a cluster, so one node stopping doesn't mean the 
>> > session is destroyed.
>> >
>> > My understanding is that expireSessionsOnShutdown="false" by default 
>> > and I don't change it in my config.
>> >
>> > Is this a bug, a feature or am I doing something wrong?
>> >
>> > Ronald.
>> >
>> ------------------------------------------------------------------------
>> >
>> > No virus found in this incoming message.
>> > Checked by AVG. 
>> > Version: 7.5.519 / Virus Database: 269.21.7/1334 - Release Date:
>> 3/18/2008 8:52 PM
>> > 
>> 
>> 
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/sessionListener.sessionDestroyed-is-called-on-shutdown-of-a-node-in-the-cluster-tp16178701p16720610.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Re: sessionListener.sessionDestroyed is called on shutdown of a node in the cluster

Posted by Ronald Klop <ro...@base.nl>.
Thanks for replying. I still have not found a solution.
As Filip mentions below. It isn't going to be fixed.

Maybe it is possible to do something with valueBound, valueUnbound events, but I didn't have time to check it yet.

Ronald.

On Wed Apr 16 12:23:38 CEST 2008 Tomcat Users List <us...@tomcat.apache.org> wrote:
> 
> Hello,
> 
> I have the same problem.....
> please let me know if you have got any solution to this.
> 
> 
> sanjeev 
> 
> 
> 
> Ronald Klop wrote:
> > 
> > In sessionDestroyed I register the user as logged out.
> > 
> > How can I know if sessionDestroyed is called from session.invalidate()
> > from the real expiration of the session or shutdown of one cluster node?
> > 
> > 
> > Ronald.
> > 
> > On Thu Mar 20 17:40:26 CET 2008 Tomcat Users List
> > <us...@tomcat.apache.org> wrote:
> >> It's expected behavior, sessions will always expire on the local node 
> >> during a graceful shutdown.
> >> 
> >> expireSessionsOnShutdown="false" simply means that we don't expire 
> >> sessions in the remote nodes
> >> 
> >> Filip
> >> 
> >> 
> >> Ronald Klop wrote:
> >> > Hello,
> >> >
> >> > When I shutdown a node in my cluster (tomcat 5.5.26) sessionDestroyed 
> >> > is called on all SessionListeners on that node.
> >> > But I'm running a cluster, so one node stopping doesn't mean the 
> >> > session is destroyed.
> >> >
> >> > My understanding is that expireSessionsOnShutdown="false" by default 
> >> > and I don't change it in my config.
> >> >
> >> > Is this a bug, a feature or am I doing something wrong?
> >> >
> >> > Ronald.
> >> >
> >> ------------------------------------------------------------------------
> >> >
> >> > No virus found in this incoming message.
> >> > Checked by AVG. 
> >> > Version: 7.5.519 / Virus Database: 269.21.7/1334 - Release Date:
> >> 3/18/2008 8:52 PM
> >> > 
> >> 
> >> 
> >> ---------------------------------------------------------------------
> >> To start a new topic, e-mail: users@tomcat.apache.org
> >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >> For additional commands, e-mail: users-help@tomcat.apache.org
> >> 
> > 
> > 
> 
> -- 
> View this message in context: http://www.nabble.com/sessionListener.sessionDestroyed-is-called-on-shutdown-of-a-node-in-the-cluster-tp16178701p16720610.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>