Sorry, I didn't look at the stack trace close enough.  That is during a send, 
in the camel RedeliveryErrorHandler, so disregard my previous statement.  To 
handle it, you'd need to replace the RedeliveryErrorHandler with one that will 
catch exceptions (e.g. wrap that processor)

-----Original Message-----
From: Sven Zethelius 
Sent: Monday, June 27, 2011 8:13 AM
To: [email protected]
Subject: RE: Unable to catch exception from Camel.

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 you.

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

Hi,

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
startup...

Cheers,

Ashwin... 

-----
---------------------------------------------------------
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary)
http://fusesource.com 

Blog: http://opensourceknowledge.blogspot.com 
CamelOne 2011: http://fusesource.com/camel2011 
---------------------------------------------------------
--
View this message in context: 
http://camel.465427.n5.nabble.com/Unable-to-catch-exception-from-Camel-tp4528048p4528704.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to