Re: Unable-to-catch-exception-from-Camel

2011-07-13 Thread kellny
I'm not sure that it is a good solution.I've just switched off an auto reply process and made a response throught CamelJmsDestination. org.springframework.jms.InvalidDestinationException

Re: Unable-to-catch-exception-from-Camel

2011-07-13 Thread Claus Ibsen
Hi It seems the stacktrace is from the EndpointMessageListener which is used for consuming messages on JMS message queues. The exception is thrown by spring-jms (which is used for consuming JMS messages). And thus the exception cannot be handled by Camel in traditional way (using errorHandler, onE

Re: Unable-to-catch-exception-from-Camel

2011-07-12 Thread kellny
This is stack trace.I can't catch *org.springframework.jms.InvalidDestinationException* in my root. 2011-07-12 07:26:59,264 [Camel (camelContext) thread #0 - JmsConsumer[trs-reception-0]] DEBUG [JmsConfiguration$CamelJmsTemplate] Executing callback on JMS Session: com.tibco.tibjms.TibjmsxSessionIm

Re: Unable to catch exception from Camel.

2011-06-29 Thread dylansd
I believe I was using the recipientList() in a manner not fitting the requirement. I tried this and have the desired behaviour now: Basically, the OrderService class will set the header with the required route. And exceptions are handled by the onException()... from("ibmmq:B2B.B2B.Q.1")

Re: Unable to catch exception from Camel.

2011-06-29 Thread dylansd
Thanks, I was able to catch the Exception by wrapping the processor as you said. Works like a charm. Although I still think I am doing something wrong in general, as I cannot catch exceptions I deliberately throw from my MessageRouter class... (starting to get that feeling that I need to use spri

Re: Unable to catch exception from Camel.

2011-06-29 Thread dylansd
Here is the stack trace if it helps: body is : Test Message: 1 1969 [Camel (camel-1) thread #0 - JmsConsumer[B2B.B2B.Q.1]] DEBUG org.apache.camel.processor.MulticastProcessor - Done sequential processing 0 exchanges 1969 [Camel (camel-1) thread #0 - JmsConsumer[B2B.B2B.Q.1]] DEBUG org.apache.cam

Re: Unable to catch exception from Camel.

2011-06-29 Thread David Karlsen
: Sven Zethelius > Sent: Monday, June 27, 2011 8:13 AM > To: users@camel.apache.org > 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 AbstractPollingMessageListenerCo

Re: Unable to catch exception from Camel.

2011-06-29 Thread dylansd
And here is the source code... Notice the excessive error handling attempts... The cause of the error is intentional (I am trying to send to a non-existant queue :) package spikes.camel; import javax.jms.JMSException; import org.apache.camel.CamelContext; import org.apache.camel.Exchange; import

RE: Unable to catch exception from Camel.

2011-06-27 Thread Sven Zethelius
--Original Message- From: Sven Zethelius Sent: Monday, June 27, 2011 8:13 AM To: users@camel.apache.org 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 AbstractPollingMessageListenerConta

RE: Unable to catch exception from Camel.

2011-06-27 Thread Sven Zethelius
, although I haven't found a good way yet since Camel creates the MessageListenerContainer for you. -Original Message- From: Ashwin Karpe [mailto:aka...@fusesource.com] Sent: Monday, June 27, 2011 7:54 AM To: users@camel.apache.org Subject: Re: Unable to catch exception from Camel.

Re: Unable to catch exception from Camel.

2011-06-27 Thread Ashwin Karpe
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 start