What broker do you use? You can use the exceptionListener option on the JMS component, and implement a custom code to handle the JMS exceptions. And possible in that use-case stop the listener or something if you want to terminate it etc?
On Wed, Jun 19, 2013 at 7:14 AM, Richa <rsinha2...@gmail.com> wrote: > Hi, > I have a camel route having JMS as input location. I want to handle the > scenario when JMS is down. I would like to restrict the number of retries to > 2 in case JMS is down. But when I looked through the > messageListenerContainer class I realized that the method which is called to > connect to the JMS is called in a thread. Maybe I am intrepreting it wrong, > but it always keeps on retrying for infinite number of times. Also no > exception is explicitly thrown so I cannot have an onException block. > > Please tell me how can I restrict the number of retries. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-JMS-retry-mechanism-tp5734328.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- www.camelone.org: The open source integration conference. Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen