>> also, what could mean that it doesn't work, would be that multicast is 
>> not working for you, and you need to enable multicast.
>
> I've ensured that multicast is enabled.  I've added the multicast route to 
> the routing tables.  I've even checked my multicast route between 2 
> machines by pinging 224.0.0.1 and getting replies from both machines. 
> However, I still don't see any of the cluster beans in jConsole.  Any 
> ideas?

Ok - a little more searching online and I finally found a couple of 
references indicating that the Cluster beans have been removed from JMX in 
Tomcat 6 and have not been added back in yet.  I would suggest that the 
documentation on the HowTo page be updated to include this information.

>> you can also set up static members,
>> http://tomcat.markmail.org/search/?q=cluster%20static%20member#query:cluster%20static%20member%20list%3Aorg.apache.tomcat.users%20date%3A200707-200902%20from%3A%22SANCHEZ%2C%20Michel%22+page:1+mid:slqnel56c2lougo3+state:results
>
> Thanks, but I would prefer having auto-detection if possible.  Right now, 
> I'm trying to figure out how to log / debug the information to ensure that 
> everything is being sent, however, like I said, I don't even see the beans 
> exposed in jConsole MBeans anywhere.  Is there any other way to enable 
> logging of the cluster?

I finally also figured out (I think) that I need to add the following to 
conf/logging.properties to get more defailed logging info:
org.apache.catalina.ha.level = FINE
org.apache.catalina.ha.handlers = java.util.logging.ConsoleHandler

org.apache.catalina.tribes.level = FINE
org.apache.catalina.tribes.handlers = java.util.logging.ConsoleHandler


So I am now seeing a little more trace info when my server starts up, 
however I still don't see any session replication.  I don't see it in the 
logs, nor in the tomcat manager (ie: I have 1 session on server 1 but none 
on server 2).

I am pasting my conf/server.xml file in case that might help.  The two 
servers are using the exact same setup.

I read in the HowTo that the Manager can be defined either in the Cluster or 
in the Context.  Does it matter which?  Does it need to be in the context 
element as well?

Thanks for any help!

Eric



  <Service name="Catalina">

    <!--
    <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
        maxThreads="150" minSpareThreads="4"/>
    -->

    <Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
    <!-- A "Connector" using the shared thread pool-->
    <!--
    <Connector executor="tomcatThreadPool"
               port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
    -->

    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443"
        minSpareThreads="50"
        maxThreads="10000" />

    <Engine name="Catalina" defaultHost="localhost">


       <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>

          <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
                 filter=""/>
          <Valve 
className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>

          <ClusterListener 
className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>
          <ClusterListener 
className="org.apache.catalina.ha.session.ClusterSessionListener"/>
        </Cluster>





      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"/>

      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
      </Host>
    </Engine>
  </Service> 




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to