1) Yes, you assumptions are correct imagine this code Map map = (Map)session.getAttribute("map"); map.put("test","test");
in this scenario, the simple tcp replication manager comes in handy. 2) Session activate/passivate is not invoked. I didn't really think of it as activation/passivation when it gets replicated. I can for sure add it in, if there is a need for it. Enabling debug mode using log4j will show you exactly what sessions get replicated and when, for more info on how to do that, http://www.mail-archive.com/[EMAIL PROTECTED]/msg126799.html -----Original Message----- From: Weseloh, Nicole [mailto:[EMAIL PROTECTED] Sent: Friday, June 04, 2004 5:26 AM To: Tomcat Users List (E-Mail) Subject: Session Replication with Tomcat 5.0.19 Hello, I've got two questions concerning in memory session replication: 1.) What exactly is the difference between SimpleTcpReplicationManager and DeltaManager? I guess that SimpleTcpReplicationManager replicates the whole session, while DeltaManager replicates only the attributes which changed. Is that correct? As far as I see, DeltaManager's performance would be much better, so what reasons could there be to use a SimpleTcpReplicationManager after all? 2.) I'd like to have a logmessage each time a session gets replicated (just for "learning" purpose, I like to see what's going on... ;-) ), so one of my objects I store in each session implements HttpSessionBindingListener and HttpSessionActivationListener. The object is definitely stored in the session (valueBound() shows me in the log..), and the session gets replicated, I guess - at least, I've got the valueBound() - log on both cluster nodes. However, willPassivate() and didActivate() are never called. (no log output there. ) Yes, I've set "useDirtyFlag = false" (otherwise, no special configurations in server.xml - just the default) and the cluster members "know" each other... I googled a whole day, read the java doc and everything else I could find.. but still couldn't find out how SessionActivation exactly works... I assume a session "willPassivate", gets replicated and then "didActivate" - or am I completely wrong? Thanks, Nicole ------------------------------------------------------------ Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.692 / Virus Database: 453 - Release Date: 5/28/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.692 / Virus Database: 453 - Release Date: 5/28/2004 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]