My use case is a consumer listening to a remote queue which becomes disconnected. The log gets the following message in this case:
18:24:47,492 WARNING [org.hornetq.core.protocol.core.impl.RemotingConnectionImpl] (Thread-2 (group:HornetQ-client-global-threads-1123639765)) Connection failure has been detected: The connection was disconnected because of server shutdown [code=4]
It looks like offers hooks to specify reconnect-attempts and retry-intervals:
Can these options be exposed in the immutant connection factory?