Description of problem: With camel and the standard jms component there is a reconnection issue if the application is waiting inside a blocking operation (sending a message) when live is killed. When the client fails over the connection, the thread is unblocked and an exception is thrown to the client. The client (camel) handles that by closing the sessions and creating a new connection. Because the connection factory used to build the camel route only has a connector pointing to the live server, the new connection will always fail while the live server is down. 11:58:42,885 ERROR [org.apache.camel.component.jms.DefaultJmsMessageListenerContainer] (Camel (camel-1) thread #3 - JmsConsumer[testQueue1]) Could not refresh JMS Connection for destination 'testQueue1' - retrying using FixedBackOff {interval=5000, currentAttempts=6, maxAttempts=unlimited} . Cause: Failed to create session factory; nested exception is HornetQException[errorType=NOT_CONNECTED message=HQ119007: Cannot connect to server(s). Tried with all available servers.] Version-Release number of selected component (if applicable): 6.4 CP21 How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: No failures Additional info:
PR: https://github.com/hornetq/hornetq/pull/2132
Regression tests passed Verified with EAP 6.4.22.CP.CR1
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days