camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine DESSAIGNE <antoine.dessai...@gmail.com>
Subject Re: aggregation in java dsl is not working
Date Fri, 30 May 2014 11:45:16 GMT
Hi,

You can try the following thing:
from("direct:start")
        .aggregate(constant(true), new BodyAggregationStrategy())
        .completionTimeout(3000)
        .to(target);

Antoine.


2014-05-20 14:45 GMT+02:00 nirosha27 <nirosha.makkena@wipro.com>:

> Hi,
>
> Below is my aggragation route in java dsl:
>
>  .aggregate(new BodyAggregationStrategy()).
>    constant(true).
>     completionTimeout(3000).
>      to(target);
>
> The same thing is working in spring dsl.But i want it in java dsl.
>
> Exchanges(old and new) are coming to BodyAggregationStrategy class but it
> is
> not going to target, which is a file.
>
> Please give suggestion.
>
> Thanks
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/aggregation-in-java-dsl-is-not-working-tp5751351.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

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