Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 60857 invoked from network); 25 Nov 2008 17:21:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Nov 2008 17:21:27 -0000 Received: (qmail 60808 invoked by uid 500); 25 Nov 2008 17:21:26 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 60786 invoked by uid 500); 25 Nov 2008 17:21:26 -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 60775 invoked by uid 99); 25 Nov 2008 17:21:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Nov 2008 09:21:26 -0800 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 (athena.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; Tue, 25 Nov 2008 17:20:00 +0000 Received: (qmail 5272 invoked from network); 25 Nov 2008 11:20:46 -0600 Received: from 72-19-171-38.static.mesanetworks.net (HELO ?192.168.3.130?) (72.19.171.38) by halosg.com with SMTP; 25 Nov 2008 11:20:42 -0600 Message-ID: <492C33E9.6060306@hanik.com> Date: Tue, 25 Nov 2008 10:20:41 -0700 From: Filip Hanik - Dev Lists User-Agent: Thunderbird 2.0.0.18 (X11/20081119) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: tomcat 6.0.18 clustering.. session getting replicated partially References: <39f20320811241727n185e333ejbbd50b02c26c0b3a@mail.gmail.com> <492B5B23.1090307@hanik.com> <39f20320811250814y42c9f8abt82f0243e6861de25@mail.gmail.com> In-Reply-To: <39f20320811250814y42c9f8abt82f0243e6861de25@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org you're attachment didn't go through, just post a complete example somewhere on the web. for free support, you can't expect the other guy (me in this case) to have to spend time setting up to replicate your environment instead, you do the legwork, and you get help for free, not a bad trade if you ask me Filip rohit aman wrote: > Hi Filip, > > All I did was to modify sessions application that comes with > tomcat. It's just two simple changes shown below. > > 1) Replace the DummCart.class in > \apache-tomcat-6.0.18\webapps\examples\WEB-INF\classes\sessions > with the attached one. > 2)mark the web.xml in > \apache-tomcat-6.0.18\webapps\examples\WEB-INF as > distributable by adding tag > 3)then access this by using > https://localhost/examples/jsp/sessions/carts.jsp > > Please let me know...Thanks for doing this > Rohit > > On Mon, Nov 24, 2008 at 6:55 PM, Filip Hanik - Dev Lists > > wrote: > > post a sample app, and we can test it out > > Filip > > > rohit aman wrote: > > Hi, > > I had setup a tomcat cluster with two nodes. followed the > instructions > from "tomcat 6 clustering how to" document. I created a sample > application to test out my cluster. This application has a > cart where u can > add items. > > now, the problem is, not all session variables are getting > replicated. below > is the scenario.. > > 1)start tomcat 1 > 2)access the cart add items to it ( lets say added 5 items ) > 3)start tomcat 2 > 4)add some more items ( 3 more...so totally 8) ( this is done > using tomcat 1 > again because my LB is configured for sticky sessions) > 5)stop tomcat 1 > 6)access the cart (now the request goes to tomcat 2)...here *I > can only see > the first 5 items where as it should be 8. *So, the next three > did not get > replicated. > > whichever session or session attribute gets created when both > nodes are > running is not getting replicated for some reason. > > I am monitoring both nodes with Jconsole. In Jconsole the > number of session > for the application = sessions in node 1 + sessions in node > 2. So, this > says that sessions are being replicated. But, I am not sure > why I am not > able to access all sessions/sessionAttributes. > > Any help is very much appreciated. > > Thanks > Rohit > > > > > > --------------------------------------------------------------------- > 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 > > > > ------------------------------------------------------------------------ > > --------------------------------------------------------------------- > 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 --------------------------------------------------------------------- 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