14 Replies Latest reply on Dec 13, 2013 2:39 AM by synclpz

    JBoss 7, HornetQ, Restart backup HornetQ after failback

    Mark Evans Newbie

      I have two JBoss 7.2 servers (EAP 6.1).  I've built and incorporated HornetQ 2.3.12.Final into the JBoss and found it to work better with failover (than the 2.3.1.Final that comes with it).  One server is configured as "live" and the second as "backup".  They are configured for "data replication".

       

      Scenario:

      - Start live server

      - Start backup server

      - Shutdown live server (hornetQ fails over to backup server)

      - Start live server (hornetQ fails back to live server)

      HornetQ quits on backup server.

       

      My question: How do I restart the HornetQ running in the backup server JBoss without having to restart the entire JBoss?

       

      I suspect that CLI may be used for this function, but I cannot find out how to do that.  Is it possible?

       

      Also, I see this bug report:  https://bugzilla.redhat.com/show_bug.cgi?id=1013536

       

      The discussion there casts some doubt as to whether or not the HornetQ can be started within the JBoss from CLI.  That discussion also speculates about being able to configure the backup server to automatically restart the hornetQ server.

       

      Bottom line: I need a reliable clustered JBoss/hornetQ solution.