You are awesome. Thanks a lot for the clue and it did the trick.
Below is the updated Aggregator code.... public Exchange aggregate(Exchange exchange1, Exchange exchange2) { try{ StringBuilder builder = new StringBuilder(); if (exchange1 == null || null == exchange1.getIn().getBody()) { exchange1 = new DefaultExchange(new DefaultCamelContext()); exchange1.getIn().setBody(builder); } builder = exchange1.getIn().getBody(StringBuilder.class); builder.append(exchange2.getIn().getBody()+"\n"); exchange1.getIn().setBody(builder); exchange1.getIn().setHeader(Exchange.FILE_NAME_ONLY, exchange2.getProperty(Exchange.FILE_NAME_ONLY)); counter++; }catch(Exception ex){ log.error("Error aggregating", ex); } exchange1.setProperty(Exchange.BATCH_SIZE, counter); return exchange1; } -- View this message in context: http://camel.465427.n5.nabble.com/File-Name-through-Aggregator-tp5665526p5665581.html Sent from the Camel - Users mailing list archive at Nabble.com.