Hi All,

We are seeing un-handled exception from JMS producer which is causing
infinite retries. Below is the scenario we have.

1. We are using camel JMS request reply. 
2. Client places a request in a queue 'A' along with JMSReplyTo queue 'B'
set in the request JMS header.
3. The queue 'A' is configured as consuming from endpoint in the route
4. Route processes the message
5. Builds some response message
6. Places the response message on to requested replyTo queue(this step is
taken care by Camel itself)

/*If the requested replyTo queue is non existing/unavailable on the Queue
Manager, I am getting the below error and more over it is getting retried by
camel infinitely(not getting caught in any onException blocks[route/context
level])*/

I have gone through many links on this. 

Found Claus reply in the below link. I am confused, if the camel has no
handle on the component specific exception, how is the camel route retry is
happening infinitely?
http://grokbase.com/t/camel/users/117cwyra62/unable-to-catch-exception-from-camel

As per Claus suggestion, tried to implement exception Listener, but that
doesn't work. Found a related Jira ticket in unresolved status.
https://issues.apache.org/jira/browse/CAMEL-4616

Can some please help me in understanding the concept in above link(Camel
unable to catch the error) and any solution you know or any workaround you
used to fix this?

*Below is the route configuration:*

<route id="serviceRoute">
      <from uri="mqjms:java:comp/env/jms/mq/ServiceRequestQ" />
      <convertBodyTo type="java.io.InputStream" />
      <log message="Destination : ${header.JMSReplyTo}" loggingLevel="INFO"
/>
      <to uri="bean:serviceMessageReceiverBean?method=processMessage" />
      <log message="Response : ${body}" loggingLevel="INFO" />
</route>

*Error Message:*

2013-04-11 03:56:31,750 29766 WARN 
[org.apache.camel.component.jms.EndpointMessageListener] (Camel
(serviceContext) thread #0 -
JmsConsumer[java:comp/env/jms/mq/serviceRequestQ]:) - Execution of JMS
message listener failed. Caused by: [org.apache.camel.RuntimeCamelException
- org.springframework.jms.InvalidDestinationException: JMSWMQ2008: Failed to
open MQ queue 'NON_EXISTS'.; nested exception is
com.ibm.msg.client.jms.DetailedInvalidDestinationException: JMSWMQ2008:
Failed to open MQ queue 'NON_EXISTS'. JMS attempted to perform an MQOPEN,
but WebSphere MQ reported an error. Use the linked exception to determine
the cause of this error. Check that the specified queue and queue manager
are defined correctly.; nested exception is com.ibm.mq.MQException:
JMSCMQ0001: WebSphere MQ call failed with compcode '2' ('MQCC_FAILED')
reason '2085' ('MQRC_UNKNOWN_OBJECT_NAME').]
org.apache.camel.RuntimeCamelException:
org.springframework.jms.InvalidDestinationException: JMSWMQ2008: Failed to
open MQ queue 'NON_EXISTS'.; nested exception is
com.ibm.msg.client.jms.DetailedInvalidDestinationException: JMSWMQ2008:
Failed to open MQ queue 'NON_EXISTS'. JMS attempted to perform an MQOPEN,
but WebSphere MQ reported an error. Use the linked exception to determine
the cause of this error. Check that the specified queue and queue manager
are defined correctly.; nested exception is com.ibm.mq.MQException:
JMSCMQ0001: WebSphere MQ call failed with compcode '2' ('MQCC_FAILED')
reason '2085' ('MQRC_UNKNOWN_OBJECT_NAME').

Thanks in advance
Praveen



--
View this message in context: 
http://camel.465427.n5.nabble.com/org-springframework-jms-InvalidDestinationException-while-trying-placing-a-message-on-queue-tp5730697.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to