camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hilde <>
Subject Exception handling within route chains
Date Wed, 11 Jul 2012 15:40:12 GMT

We design different camel routes in different RouteBuilder classes and the
one is 
calling the other one:

RouteBuilder No. 1

public void configure() throws Exception {
	from("activemq:" + JmsDestinations.QUEUE_INIT_MAIN_ROUTE)
			.to("activemq:topic:" + JmsDestinations.TOPIC_LOG_SERVICE)

RouteBuilder No. 2

public void configure() throws Exception {
			.setBody(simple("${header." + DN1CamelHeader.PROTOCOL_DIRECTORY_CLEANING
+ "}"));

How can we reach that the exception handling in route No. 1 catches and
handles all exceptions that are thrown in route No. 2?
Global scoped exception handling seems not an alternative because we have
many routes and exceptions should be handled individually.

Many thanks

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message