camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hilde <>
Subject Re: Exception handling within route chains
Date Thu, 12 Jul 2012 08:14:57 GMT
Hello Claus!

YUHUUUUU I got it and it is working! Your last posting gave me a reality
check. Thanks a lot.

The following code snippet propagates the exception back to the calling

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 {
		.bean(EmptyDirectoryDataReceived.class) *// throws an exception here*
		.setBody(simple("${header." + DN1CamelHeader.PROTOCOL_DIRECTORY_CLEANING +

Thanks Thanks!

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

View raw message