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.
<endpoint id="in" uri="jmstx:topic:${jms.topic}?disableReplyTo=true" />
<route id="main" >
<from ref="in"/>
<onException useOriginalMessage="false">
<exception>org.springframework.jms.InvalidDestinationException</exception>
<redeliveryPolicy maximumRedeliveries="0"
logHandled="false" />
<handled>
<constant>true</constant>
</handled>
<process ref="invalidDestinationProcessor" />
</onException>
<bean ref="reply" />
<to uri="jmstx:queue:dummy" />
</route>
Is it a good solution?
--
View this message in context:
http://camel.465427.n5.nabble.com/Unable-to-catch-exception-from-Camel-tp4578302p4582894.html
Sent from the Camel - Users mailing list archive at Nabble.com.