3 Replies Latest reply on Sep 3, 2012 10:47 AM by Yong Hao Gao

    How to listen for fail over events

    Flemming Harms Novice

      Hello,

       

      We are in phase where we upgrade JBoss Messaging to HornetQ 2.3.0 Alpha and in the previous version we was able to register a failover listener.

       

      TopicConnection connection = ((TopicConnectionFactory) lookup).createTopicConnection(username, password);
      ((JBossConnection) connection).registerFailoverListener(this);
      

       

      But I haven't been able to find a similar API call for HornetQ, How can I achieve this?

       

      thanks!

       

      /Flemming