1 Reply Latest reply on Jun 26, 2014 7:09 AM by ajinkya bambal

    JMS Client Connections are not getting migrated while doing Failover using static connectors discovery mode

    ajinkya bambal Newbie

      I am using HornetQ-2.3.0.Final , I am attaching configuration for both Live and Backup server with JMS Producer and consumer. In JMS Producer code , After sending some messages , I am doing failover ( I am purposely shutting down live server ) . Once Live server shuts down , Back server announces itself as Live but new connection and session is not getting created automatically . Instead I am getting warning messages in console as ,

       

      "

      Jun 24, 2014 7:15:27 PM org.hornetq.core.logging.impl.JULLogDelegate warn

      WARNING: Connection failure has been detected: The connection was disconnected because of server shutdown [code=4]

      Jun 24, 2014 8:31:33 PM org.hornetq.core.logging.impl.JULLogDelegate warn"

       

       

      What I read in HornetQ documentation is , "HornetQ clients can be configured to receive knowledge of all live and backup servers, so that in event of connection failure at the client - live server connection, the client will detect this and reconnect to the backup server. The backup server will then automatically recreate any sessions and consumers that existed on each connection before failover, thus saving the user from having to hand-code manual reconnection logic."  . But in my case this is not happening.