POST your log, does it show member discovery?
Filip
Gangadhar Prusty wrote:
Hi,
My logs don't show any error/warning messages.
But it still doesn't replicate/share the ServletContext attributes.
Does the addition of below element in the *context.xml* mean that the *
ServletContext* attributes are replicated/shared across other cluster
members?
<Context className="org.apache.catalina.ha.context.ReplicatedContext"/>
Thanks again.
On 6/2/08, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:
what do your logs say?
gangadhar p wrote:
Hi Filip,
Thanks for your prompt response.
I added an attribute to the ServletContext object in one instance and
tried
to access the same attribute in another instance and it returns null.
The <Cluster> (in server.xml) element has the attribute
managerClassName=org.apache.catalina.cluster.session.DeltaManager ? Or
org.apache.catalina.session.PersistentReplicationManager is required to be
set?
Do you want to see my server.xml files and code?
Thank you again.
Filip Hanik - Dev Lists wrote:
what does your log say?
Filip
gangadhar p wrote:
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 added contents in my server.xml is given below:
<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"/>
And the added contents in config.xml file is given below:
<Context className="org.apache.catalina.ha.context.ReplicatedContext">
Any modifications required?
Any suggestions would be highly appreciated.
Thanks in advance.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 269.24.4/1477 - Release Date: 6/1/2008 5:28 PM
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]