0 Replies Latest reply on Aug 6, 2012 8:04 AM by Ramesh Bangaru

    JBoss 7.1.1 HornetQ failover - Failed to announce backup

    Ramesh Bangaru Newbie



      I am trying out the sample of HornetQ failover using 2 Jboss server running in different machines.

      In the first Jboss server I configured  HornetQ as Live server.

      In the second JBoss server I configured another HQ as backup server.


      I have used the attached config file for HornetQ setup.


      The first Jboss server I am starting with - standalone-hornetq-colocated-primary.xml

      The second Jboss server I am starting with - standalone-hornetq-colocated-sec.xml


      I am getting the below error in the second Jboss server console -


      4:38:08,043 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 10151ms - Started 152 of 198 services (45 services are passive or on-demand)

      14:38:27,684 WARN  [org.hornetq.core.server.cluster.impl.ClusterConnectionImpl] (Thread-0 (HornetQ-server-HornetQServerImpl::serverUUID=ef818b2d-dd4d-11e1-9541-3c07544a7197-12567132)) Unable to announce backup, retrying: HornetQException[errorCode=3 message=Timed out waiting to receive initial broadcast from cluster] at org.hornetq.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:711) [hornetq-core-2.2.13.Final.jar:] at org.hornetq.core.client.impl.ServerLocatorImpl.connect(ServerLocatorImpl.java:588) [hornetq-core-2.2.13.Final.jar:] at org.hornetq.core.server.cluster.impl.ClusterConnectionImpl$2.run(ClusterConnectionImpl.java:485) [hornetq-core-2.2.13.Final.jar:] at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:100) [hornetq-core-2.2.13.Final.jar:] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [classes.jar:1.6.0_31] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [classes.jar:1.6.0_31] at java.lang.Thread.run(Thread.java:680)


      Please have a look at the attached files and help me out solving this issue.I am just trying out if i kill the primary HQ server the Backup server should take it up.


      Looking forward your response..Thanks!