camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gilboy <josephoto...@gmail.com>
Subject Exception handling in consumer of my custom component
Date Wed, 25 Jul 2012 21:01:08 GMT
Hi

Assume I have a route which goes:

*from("custom:component").process("").to("")..etc*

Lets also assume I have an exception/error/retry policy set on this route.
In my custom component consumer I need to invoke something like:
*
Exchange exchange = endpoint.createExchange();
exchange.getIn().setBody(socketMessage.getAsString());
getProcessor().process(exchange);
*

Now the call to process requires me to catch an exception. However, I want
exceptions to be handled via the exception handling policy defined in the
route. In other words, I don't want my consumer to have to implement
exception handling logic.

Just wondering how I can get round this

Thanks



--
View this message in context: http://camel.465427.n5.nabble.com/Exception-handling-in-consumer-of-my-custom-component-tp5716479.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message