Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 1660 invoked from network); 28 Sep 2007 13:15:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Sep 2007 13:15:12 -0000 Received: (qmail 45535 invoked by uid 500); 28 Sep 2007 13:14:41 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 45466 invoked by uid 500); 28 Sep 2007 13:14:41 -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 45224 invoked by uid 99); 28 Sep 2007 13:14:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Sep 2007 06:14:40 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=FS_REPLICA,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [72.22.94.67] (HELO virtual.halosg.com) (72.22.94.67) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Sep 2007 13:17:04 +0000 Received: (qmail 9537 invoked from network); 28 Sep 2007 08:12:04 -0500 Received: from unknown (HELO ?10.21.65.217?) (208.17.34.25) by halosg.com with SMTP; 28 Sep 2007 08:12:04 -0500 Message-ID: <46FCFE1A.8080206@hanik.com> Date: Fri, 28 Sep 2007 07:14:02 -0600 From: Filip Hanik - Dev Lists User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Does Tomcat replicate in-memory replication of data other than Sessions ? References: <6C112B399446A1458E093CD288EED8FCE3AB4B@INHADXMB103V.zone1.scb.net> In-Reply-To: <6C112B399446A1458E093CD288EED8FCE3AB4B@INHADXMB103V.zone1.scb.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org very doable, you can piggy back on Tribes if you have clustering enabled import org.apache.catalina.ServerFactory; import org.apache.catalina.Cluster; import org.apache.catalina.ha.tcp.SimpleTcpCluster; import org.apache.catalina.tribes.Channel; import org.apache.catalina.tribes.Member; public static void sendMessage(byte[] somedata) throws Exception { Cluster cl = ServerFactory.getServer().findService("nameofservice").getContainer().findChild("nameofengine").getCluster(); if (cl!=null && cl instanceof SimpleTcpCluster) { SimpleTcpCluster cluster = (SimpleTcpCluster)cl; Channel channel = cluster.getChannel(); Member[] nodes = channel.getMembers(); if (nodes!=null && nodes.length>0) channel.send(nodes,somedata,0); } } please note, that you must correct "nameofservice" and "nameofengine" with the names of these containers that you have defined in server.xml Filip Mamta, Jain wrote: > Hello there, > > I would like to know if Tomcat 6 offers in-memory replication of data > other than Sessions data alone. > > Actually we have a requirement of replicating the data an application in > Multicast cluster caches. The data has to be replicated to other nodes > in the cluster. Would like to know : > 1. If this is this possible - replicate data to other nodes in cluster > where the data is not session data alone > 2. If yes, can it be achieved with configuration of Tomcat multicast > cluster or by extending classes of Catalina/Tribes ? > > Your reply will be greatly appreciated ! Thank You . > > Best Regards, > Mamta > Technical Lead | Enterprise Solutions, GF, ISCI | Haddows Road, Asia, > III flr > > This email is confidential. If you are not the addressee tell the sender immediately and destroy this email > without using, sending or storing it. Emails are not secure and may suffer errors, viruses, delay, > interception and amendment. Standard Chartered PLC and subsidiaries ("SCGroup") do not accept liability for > damage caused by this email and may monitor email traffic. > > > > ------------------------------------------------------------------------ > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.488 / Virus Database: 269.13.33/1034 - Release Date: 9/27/2007 5:00 PM > --------------------------------------------------------------------- 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