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

    JBoss 7.2 Cluster running TCP

    Michal Madejski Newbie



      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>



      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:}"/>

      is a address, where I see UDP traffic

      messaging-group is used in Hornetq configuration.



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







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





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



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




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


      PS. Sorry for my english