camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Quiroz <>
Subject RoutingSlip exchange pattern
Date Mon, 14 Apr 2008 17:13:13 GMT


I have been trying to use the new RoutingSlip to do something similar as
what is describe in:

RoutingSlip was my last item in the chain and it basically redirects
messages to one or more activemq:queueName destinations

If found the issue that all messages sent when using routing slip would
include a reply-to header an I'd get the same behaviour as described above.

After tracking this problem for a while I found that the reason is that
Routing Slips sets the exchange pattern as InOut as follows

		for (String nextRecipient : recipients) {
			Endpoint<Exchange> endpoint = resolveEndpoint(exchange, nextRecipient);
			Producer<Exchange> producer = producerCache.getProducer(endpoint);
			Exchange ex = endpoint.createExchange(ExchangePattern.InOnly);

			copyOutToIn(ex, current);


			current = ex;

When I change this to ExchangePattern.InOnly this works fine.
Is this behavior by design? Can this be made customizable?

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

View raw message