camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Camel Aggregator - Completion based on CamelSplitComplete
Date Fri, 04 Dec 2015 08:56:22 GMT
If you want a fork - join kinda pattern, then use the splitter only mode
http://camel.apache.org/composed-message-processor.html

On Fri, Dec 4, 2015 at 7:13 AM, contactreji <contactreji@gmail.com> wrote:
> Hello!!
>
> I just noticed the the header called CamelSplitComplete in camel splitter
> EIP.
>
> My requirement is to create a single file at the end of aggregation. I have
> configured my aggergator as follows
>
> *<aggregate strategyRef="AggregateIndividualRecords">
>                                 <correlationExpression>
>                                         <constant>true</constant>
>                                 </correlationExpression>
>                                 <completionPredicate>
>                                         <simple>${in.header.CamelSplitComplete}
== true</simple>
>                                 </completionPredicate>
>                                 <setHeader headerName="CamelFileName">
>                                         <simple>${exchangeId}</simple>
>                                 </setHeader>
>                                 <log message="Inside Agg"/>
>                                 <to uri="file:aggregatedRecords" />
>                         </aggregate>*
>
> But unfortunately, the control is not entering this block at all. Am I
> missing out on something? I my completionPredicate configured properly?
>
> Cheers
> Reji
>
>
>
> -----
> Reji Mathews
> Sr. Developer - Middleware Integration / SOA ( Open Source - Apache Camel & Jboss
Fuse ESB | Mule ESB )
> LinkedIn - http://in.linkedin.com/pub/reji-mathews/31/9a2/40a
> Twitter - reji_mathews
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-Aggregator-Completion-based-on-CamelSplitComplete-tp5774653.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Mime
View raw message