camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ambika Das <>
Subject Old Exchange always returns null
Date Mon, 27 Mar 2017 08:49:26 GMT

I am aggregating contents of a csv file. the csv file can contain rows with
same e mail id. For those lines I need to generate a combined JSON with
contents aggregated.

I am using PreCompletionAwareAggregationStrategy and my aggregate method
looks like this.

if (oldExchange == null) {
    return false;

// Code for matching e mail id goes here

//merges application data with old exchange

return oldExchange;

My route builder looks like this

    .aggregate(header(FILE_NAME_ONLY), myAggregationStrategy)

>From the posts I came to know that we need to set an index to the
header, but not sure how it


Every time my old exchange comes null so code after old exchange block
never gets executed.




------------  Our Legal Fees At Work -----------------------------------
This communication and its contents are confidential and may contain 
protected intellectual property or other information protected from 
disclosure. If you are not the intended recipient you may not read, copy, 
distribute or use this information. If you have received this 
communication or its contents in error, please notify Symphony Talent 
immediately by replying to this message and then delete this communication 
and its contents from your system.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message