Mistakenly put the wrong worker.properties in my last post where the "worker.lbworker.sticky_session=false" was commented which is not the case.... Farhan.
mfs wrote: > > Guys, > > I have setup a cluster where i have two tomcat instances (one on windows > and the other on linux), the two instances are able to detect each other > and form a cluster. On top of them i have apache/mod_jk as a load-balancer > which has been set NOT to use sticky-sessions, since i want to test my app > with a session replication scenario...Also i tried to test this setup with > a simple two page app, where in one jsp i am setting a string in session > and the other displaying it. > > NOW for some reasons the sessions are not getting replicated between the > two tomcat-instances, and i dont have any clue as to why would that be the > case...so if some can please assist me on this...below is my > worker.properties and the server.xml file (for the tomcat instances).. > > > WORKER.PROPERTIES > -------- > worker.list=worker1,worker2,lbworker > > # Set properties for worker1 (ajp13) > worker.worker1.type=ajp13 > worker.worker1.host=farhan-pc > worker.worker1.port=8009 > worker.worker1.lbfactor=2 > > worker.worker2.type=ajp13 > worker.worker2.host=eng2 > worker.worker2.port=8009 > worker.worker2.lbfactor=2 > > worker.lbworker.type=lb > #worker.lbworker.sticky_session=false > worker.lbworker.balance_workers=worker1,worker2 > > > SERVER.XML - (the cluster section, further let me add that i have added in > the jvmRoute attribute in the engine element which matches the tomcat > worker name as in worker.properties..) > --------------- > <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster" > > channelSendOptions="8"> > > <Manager className="org.apache.catalina.ha.session.DeltaManager" > expireSessionsOnShutdown="false" > notifyListenersOnReplication="true"/> > > <Channel className="org.apache.catalina.tribes.group.GroupChannel"> > <Membership > className="org.apache.catalina.tribes.membership.McastService" > address="228.0.0.4" > port="45564" > frequency="500" > dropTime="3000"/> > <Receiver > className="org.apache.catalina.tribes.transport.nio.NioReceiver" > address="auto" > port="4000" > autoBind="100" > selectorTimeout="5000" > maxThreads="6"/> > > <Sender > className="org.apache.catalina.tribes.transport.ReplicationTransmitter"> > <Transport > className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/> > </Sender> > <Interceptor > className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/> > <Interceptor > className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/> > </Channel> > > <ClusterListener > className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/> > <ClusterListener > className="org.apache.catalina.ha.session.ClusterSessionListener"/> > </Cluster> > > -- View this message in context: http://www.nabble.com/Session-not-being-replicated---DeltaManager-tf4894832.html#a14018733 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]