camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sven Zethelius <sv...@expedia.com>
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
you.

-----Original Message-----
From: Ashwin Karpe [mailto:akarpe@fusesource.com] 
Sent: Monday, June 27, 2011 7:54 AM
To: users@camel.apache.org
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.

Mime
View raw message