I have route like this
onException(Exception.class).process(new MyProcessor());
if (true) {
from("route")
.routeId("key")
.transacted()
.to(route1);
}
from("route1")
.transacted()
.routeId("name1")
.split((body()))
.process(new exampleprocessor())
.process(new exampleRecipientListProcessor())
.recipientList(header(ConstantS.EXAMPLE_RECIPIENTS_KEY))
Inside the exampleRecipientListProcessor class i am setting recipient list
in exchange object header like
exchange.getIn().setHeader(constants.key, recipientqueues);
Let's suppose recipientqueues contains two queue names
(jms:queue:example,jms:invalidqueue) in that first queuename is valid and
second is invalid.
when i send data by using producertemplate to route1 its throwing an
exception in recipient list as "No endpoint is configured for invalid
jobqueue" and exception is caught in onException myprocessor class in that
even if i am using
exchange.getProperty(exchange.FAILURE_ENDPOINT, String.class) to get the
failure endpoint its not showing the invalid queuename(jms:invalidqueue) as
failure endpoint.its showing "route1" as failure endpoint.
Note:i am throwing camel exception in all .process class.
Anyone help for me this issue would be highly appreciated.
--
View this message in context:
http://camel.465427.n5.nabble.com/Problem-in-getting-failure-end-point-details-in-camel-tp5734652.html
Sent from the Camel - Users mailing list archive at Nabble.com.