« Return to Thread: swiftmq HA hangs after switching to standby instance

Re: swiftmq HA hangs after switching to standby instance

by IIT Software :: Rate this Message:

Reply to Author | View in Thread

I see, sorry.

There is everything ok in the logs. The instances failover as expected, including preferred active failover.

The problem seems to be your configuration. You did not run the HAWizard to create a HA compliant configuration, I guess.

Here is a snippet from the default config of a HA router, JMS listener part:

      <listener name="plainsocket" hostname="localhost" hostname2="localhost" port="4001" port2="4002">

It states that both HA instances are on locahost, different ports.

Here is the same part from your config:

      <listener name="sslsocket" connectaddress="192.168.1.213" connectaddress2="192.168.1.212" port="4004" port2="4004" socketfactory-class="com.swiftmq.net.JSSESocketFactory">

Yours is wrong. The client need the "host2" attribute set, otherwise they can't failover because they don't know where the other HA instance is.

What you refer to - the URL - is the JNDI provider URL. It's just to failover the JNDI context. The JMS failover stuff is wrapped in the connection factory.

Please run the HAWizard on your configuration to ensure everything is properly configured.

 « Return to Thread: swiftmq HA hangs after switching to standby instance