hi i have to recieve an id from cxf then to retrieve data from server through
socket and aggregate them with this id to resend them as a response to the
cxf endpoint,for the first time it works but i get i problem in my exchange
when i use to execute the route in second time,
this is the code of my classic aggregator
----------------------------------------------------------------------------
public class StringAggregationStrategy implements AggregationStrategy {
@Override
public Exchange aggregate(Exchange oldExchange, Exchange newExchange) {
if (oldExchange == null) {
return newExchange;
}
String oldBody = oldExchange.getIn().getBody(String.class);
String newBody = newExchange.getIn().getBody(String.class);
oldExchange.getIn().setBody(oldBody + newBody);
return oldExchange;
}
}
thanks
--
View this message in context:
http://camel.465427.n5.nabble.com/Error-occurred-during-aggregation-tp5731989.html
Sent from the Camel - Users mailing list archive at Nabble.com.