camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scisci <>
Subject AggregatinStrategy on split never stop
Date Mon, 16 Nov 2015 08:14:11 GMT
I've a problem with a split and custom aggregationStrateqy.
I've to count the items that were split.
This in my AggreagationSt egy

public class Item_AggregationStrategy implements AggregationStrategy{
	private static final Logger LOGGER =

	public Exchange aggregate(Exchange oldExchange, Exchange newExchange) {"Sono in Item_AggregationStrategy");
		 if (oldExchange == null) 
	            return newExchange;
		Integer numero_items = oldExchange.getIn().getHeader("Numero_Items",
Integer.class);"Numero Items: " + numero_items);
		numero_items++;"Numero Items 2: " + numero_items);
		newExchange.getIn().setHeader("Numero_Items", numero_items);
		return newExchange;

and this is part of my route:

<process ref="Cancellazione_Tabelle"/>
 				<split streaming="true" strategyRef="Item_Aggregator" >-->
					<tokenize token="Item" xml="true"
					<to uri="direct:Convert_Accpos"/>
        		<log message="Numero_Items dopo lo split:

it's look like tha the aggregator never end...
How to set a timeout like completionTimeout on aggregator ?


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

View raw message