tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gangadhar Prusty" <gangadhar.pru...@gmail.com>
Subject Tomcat 6 clustering problem
Date Mon, 02 Jun 2008 20:33:32 GMT
Hi Guys,
The Tomcat 6 documentation (
http://tomcat.apache.org/tomcat-6.0-doc/config/cluster.html) says that the
Context (ServletContext, right ?) attributes are replicated across cluster
members when the below element is added in either *
<tomcat-home>\conf\server.xml* or *<tomcat-home>\conf\context.xml* file.
*<Context className="org.apache.catalina.ha.context.ReplicatedContext"/>*

*But actually the ServletContext attributes are not replicated across all
other cluster members!!!*

The <Cluster> element in both server.xml files of my 2 Tomcat instances are
given below:
*1st Instance (<Cluster> element)*


*  <Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"

managerClassName="org.apache.catalina.cluster.session.DeltaManager"
                 expireSessionsOnShutdown="false"
                 useDirtyFlag="true">*

*            <Membership
                className="org.apache.catalina.cluster.mcast.McastService"
                mcastAddr="228.0.0.4"
                mcastPort="45564"
                mcastFrequency="500"
                mcastDropTime="3000"/>*

*            <Receiver

className="org.apache.catalina.cluster.tcp.ReplicationListener"
                tcpListenAddress="127.0.0.1"
                tcpListenPort="4001"
                tcpSelectorTimeout="100"
                tcpThreadCount="6"/>*

*            <Sender

className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
                replicationMode="pooled"/>
            <Valve
className="org.apache.catalina.cluster.tcp.ReplicationValve"

filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;"/>
   <ClusterListener
     className="org.apache.catalina.cluster.session.ClusterSessionListener"/>
*

*        </Cluster>*


*  <Context path=""
docBase="G:\RealNetworks\apache-tomcat-6.0.16\webapps\ROOT"
crossContext="true" debug="0" reloadable="true" privileged="true"/>*



*2nd instance (<Cluster> element): *

*  <Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"

managerClassName="org.apache.catalina.cluster.session.DeltaManager"
                 expireSessionsOnShutdown="false"
                 useDirtyFlag="true">*

*            <Membership
                className="org.apache.catalina.cluster.mcast.McastService"
                mcastAddr="228.0.0.4"
                mcastPort="45564"
                mcastFrequency="500"
                mcastDropTime="3000"/>*

*            <Receiver

className="org.apache.catalina.cluster.tcp.ReplicationListener"
                tcpListenAddress="127.0.0.1"
                tcpListenPort="4002"
                tcpSelectorTimeout="100"
                tcpThreadCount="6"/>*

*            <Sender

className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
                replicationMode="pooled"/>
            <Valve
className="org.apache.catalina.cluster.tcp.ReplicationValve"

filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;"/>
   <ClusterListener
     className="org.apache.catalina.cluster.session.ClusterSessionListener"/>
*

*        </Cluster>*


*  <Context path=""
docBase="G:\RealNetworks\Tomcat2\apache-tomcat-6.0.16\webapps\ROOT"
crossContext="true" debug="0" reloadable="true" privileged="true"/>*



And the below element is added in the *context.xml *:

*<Context className="org.apache.catalina.ha.context.ReplicatedContext">*

But the ServletContext attributes are not replicated across other cluster
members.

Any modifications are required? Very Urgent!

Any suggestions would be highly appreciated.

Thanks in advance.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message