Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 23724 invoked from network); 2 Jun 2008 21:16:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jun 2008 21:16:37 -0000 Received: (qmail 76148 invoked by uid 500); 2 Jun 2008 21:16:28 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 76119 invoked by uid 500); 2 Jun 2008 21:16:27 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 76108 invoked by uid 99); 2 Jun 2008 21:16:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2008 14:16:27 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2008 21:15:32 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1K3HNi-0001ur-1M for users@tomcat.apache.org; Mon, 02 Jun 2008 14:15:54 -0700 Message-ID: <17610976.post@talk.nabble.com> Date: Mon, 2 Jun 2008 14:15:54 -0700 (PDT) From: gangadhar p To: users@tomcat.apache.org Subject: Re: Tomcat 6 clustering problem In-Reply-To: <48445B61.8040305@hanik.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: gangadhar.prusty@gmail.com References: <17609817.post@talk.nabble.com> <48445B61.8040305@hanik.com> X-Virus-Checked: Checked by ClamAV on apache.org 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 (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 >> \conf\server.xml or \conf\context.xml file. >> >> >> But actually the ServletContext attributes are not replicated across all >> other cluster members!!! >> >> The added contents in my server.xml is given below: >> >> > >> managerClassName="org.apache.catalina.cluster.session.DeltaManager" >> expireSessionsOnShutdown="false" >> useDirtyFlag="true"> >> >> > >> className="org.apache.catalina.cluster.mcast.McastService" >> mcastAddr="228.0.0.4" >> mcastPort="45564" >> mcastFrequency="500" >> mcastDropTime="3000"/> >> >> > >> className="org.apache.catalina.cluster.tcp.ReplicationListener" >> tcpListenAddress="127.0.0.1" >> tcpListenPort="4001" >> tcpSelectorTimeout="100" >> tcpThreadCount="6"/> >> >> > >> className="org.apache.catalina.cluster.tcp.ReplicationTransmitter" >> replicationMode="pooled"/> >> > className="org.apache.catalina.cluster.tcp.ReplicationValve" >> >> filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;"/> >> > >> className="org.apache.catalina.cluster.session.ClusterSessionListener"/> >> >> >> > 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: >> >> >> >> 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: 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-problem-tp17609817p17610976.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