camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg McFall <gregory.mcf...@gmail.com>
Subject deadLetterChannel with enrich
Date Fri, 03 Jun 2011 18:12:01 GMT
Hi,

I have the following configuration:

	errorHandler(
		deadLetterChannel("direct:deadChannel")
			.disableRedelivery()
	);
				
			
	from("direct:inbox")
		.enrich("direct:enrich", new MyAggregationStrategy())
		.log("done enriching")
		.to("mock:outbox");
	
	from("direct:enrich")
		.bean(new MockService());
	
	from("direct:deadChannel")
		.log("Received dead message: ${body}")
		.to("mock:dead");


The MockService bean throws an Exception.
With this configuration, a message sent to "direct:inbox" is delivered
to the "mock:dead" endpoint, as expected.
But, the message is also delivered to "mock:outbox", contrary to my
expectaction.

How do I ensure that the route is ended after the message is delivered
to the dead letter channel?

Mime
View raw message