You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Filip Hanik - Dev Lists <de...@hanik.com> on 2007/12/10 21:01:16 UTC

Re: Tomcat 6 Clustering expireSessionsOnShutdown="false"

can you check that you don't have the "<Manager>" element in your 
conf/context.xml
this will override the default settings from below

Filip

Filip Hanik - Dev Lists wrote:
> I'll take a look at this today or tomorrow
>
> filip
>
> Timothy Wonil Lee wrote:
>> Dear list,
>>
>> I have a cluster of Tomcat 6.0.14 using DeltaManager.
>> Session replication works fine while both instances are running.
>> I can test this by for example, logging-in to one of the webapps on a 
>> Tomcat
>> instance in the cluster, then kill the process of that tomcat. Then I 
>> get
>> transferred to another instance next time I request a page, and I am 
>> still
>> logged in and objects I saved in session are still available. Good.
>>
>> However, when I stop one of the instances by using the Tomcat script,
>> sessions on the other instance expire. I suspect this is caused by the
>> tomcat that is being shutdown sends messages to other instance of 
>> Tomcat to
>> expire sessions. But I did set expireSessionsOnShutdown="false" in
>> server.xml:
>>
>> <Manager className="org.apache.catalina.ha.session.DeltaManager"
>>                    expireSessionsOnShutdown="false"
>>                    notifyListenersOnReplication="true"/>
>>
>> Can anyone help me fix this, please?
>>
>> By the way, I am also using SingleSignOn, could this have any effect on
>> Clustering?
>>
>> TIA,
>>
>> Timothy Wonil Lee
>>
>> Java Developer
>> Koorong Books (http://www.koorong.com/)
>> email: timothyl@koorong.com
>> direct ph: (+612) 9857 4448
>> direct fax: (+612) 9857 6648
>> http://www.google.com/reader/shared/16849249410805339619
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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
>>
>>
>>
>>   
>
>
> ---------------------------------------------------------------------
> 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
>
>
>


---------------------------------------------------------------------
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: Tomcat 6 Clustering expireSessionsOnShutdown="false"

Posted by Timothy Wonil Lee <ti...@koorong.com.au>.
No, I don't have <Manager> element in conf/context.xml of the web
application.


Filip Hanik - Dev Lists wrote:
> 
> can you check that you don't have the "<Manager>" element in your 
> conf/context.xml
> this will override the default settings from below
> 
> Filip
> 
> Filip Hanik - Dev Lists wrote:
>> I'll take a look at this today or tomorrow
>>
>> filip
>>
>> Timothy Wonil Lee wrote:
>>> Dear list,
>>>
>>> I have a cluster of Tomcat 6.0.14 using DeltaManager.
>>> Session replication works fine while both instances are running.
>>> I can test this by for example, logging-in to one of the webapps on a 
>>> Tomcat
>>> instance in the cluster, then kill the process of that tomcat. Then I 
>>> get
>>> transferred to another instance next time I request a page, and I am 
>>> still
>>> logged in and objects I saved in session are still available. Good.
>>>
>>> However, when I stop one of the instances by using the Tomcat script,
>>> sessions on the other instance expire. I suspect this is caused by the
>>> tomcat that is being shutdown sends messages to other instance of 
>>> Tomcat to
>>> expire sessions. But I did set expireSessionsOnShutdown="false" in
>>> server.xml:
>>>
>>> <Manager className="org.apache.catalina.ha.session.DeltaManager"
>>>                    expireSessionsOnShutdown="false"
>>>                    notifyListenersOnReplication="true"/>
>>>
>>> Can anyone help me fix this, please?
>>>
>>> By the way, I am also using SingleSignOn, could this have any effect on
>>> Clustering?
>>>
>>> TIA,
>>>
>>> Timothy Wonil Lee
>>>
>>> Java Developer
>>> Koorong Books (http://www.koorong.com/)
>>> email: timothyl@koorong.com
>>> direct ph: (+612) 9857 4448
>>> direct fax: (+612) 9857 6648
>>> http://www.google.com/reader/shared/16849249410805339619
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>>
>>>
>>>
>>>   
>>
>>
>> ---------------------------------------------------------------------
>> 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
>>
>>
>>
> 
> 
> ---------------------------------------------------------------------
> 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/Tomcat-6-Clustering-expireSessionsOnShutdown%3D%22false%22-tp13888759p14484383.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