You’re not missing anything - that’s the way the camel-jms and camel-sjms components work. They get a connection from the connection factory when they startup, and the keep using it. You can configure the Camel route to handle some JMS Exceptions and sometimes get the reconnect to work that way.
But the easiest way (and what I usually do) is connect to ActiveMQ using a failover URL. If you do that, you’ll see the ActiveMQ client trying to reconnect periodically. You don’t need to have more than one ActiveMQ server in the URL - with one, it will just keep trying to reconnect using the same URL. > On Nov 30, 2016, at 12:48 PM, sa_james <sa_remin...@hotmail.com> wrote: > > What u describe is failover. What I mean is for the client to wait until a > machine that went down, comes back up while the client is looping waiting to > reconnect. > camel-sjms does not even let you know that the connection has been lost. > Camel just silently continues to run while the connection is gone. Am I > missing something? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/camel-jms-tp5790832p5790836.html > Sent from the Camel - Users mailing list archive at Nabble.com.