  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Tomcat 6 Clustering with StaticMembers | Tomcat 6 Clustering with StaticMembers 2007-01-16 - By Filip Hanik - Dev lists
Back on the servers that is running tomcat you need to match <Receiver port> with <Member port> so for the member that listens to 51077, you need to configure the port="51077"
also to avoid conflict, you might want to turn on the membership, which I think I forgot to add in a flag for, I'll do that right now.
Filip
Mike Prince wrote: > I'm trying to cluster two Tomcat 6.0.7 instances across a network that > does not support multicasting. I've added the StaticMember elements > under the StaticMembershipInterceptor. > > I've also opened up ports 4000 and 51077. > > When I use netstat to see which ports Tomcat is listening on, it does > not show port 51077 like I would have expected. > > Does someone have an idea what I configured incorrectly? I've include > the <Cluster> section from my $tomcat/conf/server.xml, which is > identical on both machines. > > Thanks in advance! > > - Mike > > > > <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 .StaticMembershipInterceptor"> > > <Member > className="org.apache.catalina.tribes.membership.StaticMember" > port="51077" > securePort="-1" > host="10.3.1.34" > domain="staging-cluster" > uniqueId="{10,3,1,34}"/> > <Member > className="org.apache.catalina.tribes.membership.StaticMember" > port="51077" > securePort="-1" > host="10.3.1.33" > domain="staging-cluster" > uniqueId="{10,3,1,33}"/> > </Interceptor> > <Interceptor > className="org.apache.catalina.tribes.group.interceptors .MessageDispatch15Interceptor"/> > > </Channel> > > <Valve className="org.apache.catalina.ha.tcp.ReplicationValve " > filter=""/> > > <!-- > <Deployer > className="org.apache.catalina.ha.deploy.FarmWarDeployer " > tempDir="/tmp/war-temp/" > deployDir="/tmp/war-deploy/" > watchDir="/tmp/war-listen/" > watchEnabled="false"/> > --> > > <ClusterListener > className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener "/> > > <ClusterListener > className="org.apache.catalina.ha.session.ClusterSessionListener "/> > </Cluster> > > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ > To start a new topic, e-mail: users@(protected) > To unsubscribe, e-mail: users-unsubscribe@(protected) > For additional commands, e-mail: users-help@(protected) > > >
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To start a new topic, e-mail: users@(protected) To unsubscribe, e-mail: users-unsubscribe@(protected) For additional commands, e-mail: users-help@(protected)
|
|
 |