tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Rossbach>
Subject Re: Clustering "application scope replication"
Date Sat, 23 Apr 2005 17:33:35 GMT

with the next tomcat 5.5.10 release you can add a ClusterListener and 
LifecycleListener to
your cluster config to realize those ServletContext attributes 
replication things. Look at the current cvs head
and test it.

className="org.apache.catalina.cluster.session.ClusterSessionListener" />
    <ClusterListener className="your class" />
    <Listener className="your class" />

Your LifecycleListener receive the manager/context un/registration event.

ClusterListener are receive the messages. (look at 
ClusterSessionListener or JvmRouteSessionIDBinderListener)  
You must define your own ClusterMessage implementation 
(SessionMessageImpl or SessionIDMessage)

Your code contribution is very welcome :-)


Will Hartung schrieb:

>>From: "Joakim Ahlén" <>
>>Sent: Friday, April 22, 2005 5:54 AM
>>We have a cluster of two tomcat 5.5.9-machines using session
>>replication. However, we also have data in application scope (set with
>>getServletContext().setAttribute(...)) which as far as i have found in
>>the docs, is not replicated.
>You need a cluster aware caching solution. Session replication is more for
>failover and such.
>Look at something like OSCache and its ilk to get the functionality that you
>Will Hartung
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message