camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Camel JMS retry mechanism
Date Wed, 19 Jun 2013 07:21:36 GMT
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 <> 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:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
----------------- The open source integration conference.

Red Hat, Inc.
FuseSource is now part of Red Hat
Twitter: davsclaus
Author of Camel in Action:

View raw message