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")
// this bean is our order service
.bean(OrderService.class, "handleOrder")
// this is the destination if the order is OK
.recipientList().header("JMSRouteTo");
Regards
Dylan.
--
View this message in context:
http://camel.465427.n5.nabble.com/Unable-to-catch-exception-from-Camel-tp4528048p4535667.html
Sent from the Camel - Users mailing list archive at Nabble.com.