Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 84764 invoked from network); 16 Dec 2003 18:38:21 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 16 Dec 2003 18:38:21 -0000 Received: (qmail 49593 invoked by uid 500); 16 Dec 2003 18:37:53 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 49571 invoked by uid 500); 16 Dec 2003 18:37:53 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 49557 invoked from network); 16 Dec 2003 18:37:53 -0000 Received: from unknown (HELO xmail-out.shawmut.com) (64.214.98.15) by daedalus.apache.org with SMTP; 16 Dec 2003 18:37:53 -0000 Received: from SDC-MAIL1.shawmut.com ([192.168.100.3]) by xmail-out.shawmut.com with Microsoft SMTPSVC(5.0.2195.5329); Tue, 16 Dec 2003 13:37:56 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C3C403.B914E29F" Subject: Tomcat 5 Clustering Date: Tue, 16 Dec 2003 13:37:56 -0500 Message-ID: <8BE2F173A6440740934EDD48016EC97326070E@SDC-MAIL1.shawmut.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Tomcat 5 Clustering thread-index: AcPEA7jOckeIS79FQwiIB9S13JaFLQ== From: "Pitre, Russell" To: "Tomcat Users List" X-OriginalArrivalTime: 16 Dec 2003 18:37:56.0773 (UTC) FILETIME=[B9354D50:01C3C403] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C3C403.B914E29F Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello All: =20 Please excuse my ignorance, I'm trying to achieve clustering with Tomcat 5....I've read the following in the Tomcat 5 documentation: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D To run session replication in your Tomcat 5 container, the following steps should be completed: -->All your session attributes must implement java.io.Serializable=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D =20 Okay. I've completed all the other steps (uncomment the element along with the , and added the in web.xml)........I'm trying to code a simple object that implements java.io.Serializable to store in a session and here it is..... =20 package com.shawmut.session; import java.io.Serializable; =20 public class SerializeSession implements Serializable { =20 public static String testString =3D ""; =20 public void setString(String stringValue){ this.testString =3D stringValue; } public String getString(){ return this.testString; } } =20 ok.....Now I want to put this in the session..... =20 <% if(session.getAttribute("ss")=3D=3D null){ SerializeSession ss =3D new SerializeSession(); ss.setString("Booooooooooooooo! And I created my session on Tomcat 1 Node"); session.setAttribute("ss", ss); } %> =20 =20 =20 =20 Whats going on here?.....I unplug the patch cord ( docs says it's a bad idea) from one of the boxes and hit a jsp on the working node that does the following......and the session doesn't carry over to the working node.... =20 <% if(session.getAttribute("ss")!=3D null){ SerializeSession ss2 =3D (SerializeSession)session.getAttribute("ss"); %> SESSION:<%=3Dss2.getString()%> =20 <% } =20 %> =20 =20 =20 Basically what I'm looking for is an example of serializing session attributes as noted above.... Any Help here will be greatly appreciated...... =20 =20 Russ =20 =20 =20 ------_=_NextPart_001_01C3C403.B914E29F--