3 Replies Latest reply on Mar 22, 2014 4:54 AM by ataylor

    JBoss 7.2 Cluster running TCP

    qwertylian

      Hi,

       

      I'm new in JBoss. I have two servers where I've installed JBoss AS 7.2. Now I'm trying to create a cluster in domain mode running the tcp instead of udp.

      In my full-ha profile I changed default-stack to tcp, and added few lines like below.

       

      <protocol type="TCPPING">

                  <property name="initial_hosts">IP1[7600],IP2[7800]</property>

                  <property name="port_range">0</property>

                  <property name="timeout">3600</property>

                  <property name="num_initial_members">2</property>

      </protocol>

       

      But, when I sniff connection in my hosts, I see that something still uses UDP ( for multicasting ).

      It seems to me that session replication works over TCP, but nodes in cluster discovers eachother over UDP.

       

      <socket-binding name="messaging-group" port="0" multicast-port="${jboss.messaging.group.port:9876}" multicast-address="${jboss.messaging.group.address:231.7.7.7}"/>

       

      231.7.7.7 is a address, where I see UDP traffic

      messaging-group is used in Hornetq configuration.

       

      <broadcast-groups>

           <broadcast-group name="bg-group1">

                <socket-binding>messaging-group</socket-binding>

                <broadcast-period>5000</broadcast-period>

                <connector-ref>netty</connector-ref>

                </broadcast-group>

      </broadcast-groups>

      <discovery-groups>

           <discovery-group name="dg-group1">

                <socket-binding>messaging-group</socket-binding>

                <refresh-timeout>10000</refresh-timeout>

           </discovery-group></discovery-groups>

      <cluster-connections>

           <cluster-connection name="my-cluster">

                <address>jms</address>

                <connector-ref>netty</connector-ref>

                <discovery-group-ref discovery-group-name="dg-group1"/>

           </cluster-connection>

      </cluster-connections>

       

      Does it possible, to force jboss, to use only TCP ( hornetq by tcp?) How should I do it?

       

      PS. Sorry for my english