Java Mailing List Archive

http://www.junlu.com/

Google
Google
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
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Tomcat 6 Clustering with StaticMembers

Tomcat 6 Clustering with StaticMembers

2007-01-16       - By Filip Hanik - Dev lists

 Back
Reply:     1     2  

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 Source code of org.apache.catalina.ha.tcp.SimpleTcpCluster"
>                  channelSendOptions="8">
>
>           <Manager
> className="org.apache.catalina.ha.session.DeltaManager Source code of org.apache.catalina.ha.session.DeltaManager"
>                    expireSessionsOnShutdown="false"
>                    notifyListenersOnReplication="true"/>
>
>           <Channel
> className="org.apache.catalina.tribes.group.GroupChannel Source code of org.apache.catalina.tribes.group.GroupChannel">
>             <Membership
> className="org.apache.catalina.tribes.membership.McastService Source code of 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 Source code of 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 Source code of org.apache.catalina.tribes.transport.ReplicationTransmitter">
>               <Transport
> className="org.apache.catalina.tribes.transport.nio.PooledParallelSender Source code of 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 Source code of org.apache.catalina.ha.tcp.ReplicationValve"
>                  filter=""/>
>
>                         <!--
>           <Deployer
> className="org.apache.catalina.ha.deploy.FarmWarDeployer Source code of 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 Source code of org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>
>
>           <ClusterListener
> className="org.apache.catalina.ha.session.ClusterSessionListener Source code of 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)


©2008 junlu.com - Jax Systems, LLC, U.S.A.