working
This commit is contained in:
		| @@ -14,9 +14,7 @@ public class MyAggregator implements AggregationStrategy { | ||||
|     public Exchange aggregate(Exchange oldExchange, Exchange newExchange) { | ||||
|  | ||||
|         HashMap oldEx = (HashMap) oldExchange.getIn().getBody(); | ||||
|         System.out.println(oldEx); | ||||
|         ArrayList<HashMap> newEx = (ArrayList) newExchange.getIn().getBody(); | ||||
|         System.out.println(newEx); | ||||
|         oldEx.put("packages", newEx); | ||||
|  | ||||
|         MaterialType material = new MaterialType(); | ||||
| @@ -41,8 +39,6 @@ public class MyAggregator implements AggregationStrategy { | ||||
|  | ||||
|         Exchange result = oldExchange; | ||||
|         result.getIn().setBody(material); | ||||
|         System.out.println(result.getIn().getBody()); | ||||
|  | ||||
|         return result; | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user