camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sven Zethelius <>
Subject RE: Unable to catch exception from Camel.
Date Mon, 27 Jun 2011 15:13:29 GMT
Actually you won't be able to catch the exception, since this is caught and handled in Spring-JMS
AbstractPollingMessageListenerContainer.  It's not retry, so much as just constantly polling
the destination regardless of success or failure.  You may be able to install an ErrorHandler,
although I haven't found a good way yet since Camel creates the MessageListenerContainer for

-----Original Message-----
From: Ashwin Karpe [] 
Sent: Monday, June 27, 2011 7:54 AM
Subject: Re: Unable to catch exception from Camel.


Looks like your route is not getting established and the exceptionListener
is not kicking in since the idea is to catch JMS exceptions once the route
is established/started.

The exception is being thrown while trying to establish the Connection to a
given queue, prior to the route being started. You will need to catch the
exception in your main since the exceptionListener is activated upon route



Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary) 

CamelOne 2011: 
View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message