You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by huntc <hu...@mac.com> on 2009/08/29 13:52:29 UTC
Aggregator not working for me in 2.0
Hi there,
I'm in the process of migrating one of my applications to Camel 2 and have
noticed that my aggregator is not working (it was working before). Here it
is:
from("jms-receiver:com.classactionpl.saveGPSTrackerCollection")
.aggregate(gpsTrackerCollectionMergeAggregationStrategy)
.header("collectionIdentification").batchSize(
persistanceThreshold).batchTimeout(persistanceTimeout)
.to("seda:saveGpsTrackerCollection");
persistanceThreshold = 100 and persistanceTimeout = 100.
I'm passing just one message in. My strategy actually doesn't get invoked (I
observe this by setting a breakpoint in the strategy).
Any pointers?
Kind regards,
Christopher
--
View this message in context: http://www.nabble.com/Aggregator-not-working-for-me-in-2.0-tp25202246p25202246.html
Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.
Re: Aggregator not working for me in 2.0
Posted by Claus Ibsen <cl...@gmail.com>.
On Sun, Aug 30, 2009 at 3:55 AM, huntc<hu...@mac.com> wrote:
>
> Many apologies - I found the problem. I thought that I was checking to see if
> the old exchange was null in my aggregation strategy. I was actually
> checking the body of the old exchange for null and thus a null pointer
> exception must have been thrown somewhere.
> --
Glad you got it working as I was really wondering what could have
happened as we got tons of unit tests.
But yeah the AggregationStrategy has been changed to provide the
"result" in the IN message.
I do hope we get around the time in the future to allow a POJO for
aggregation as it would be easier to work with instead of low level
Exchange.
> View this message in context: http://www.nabble.com/Aggregator-not-working-for-me-in-2.0-tp25202246p25207993.html
> Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.
>
>
--
Claus Ibsen
Apache Camel Committer
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus
Re: Aggregator not working for me in 2.0
Posted by huntc <hu...@mac.com>.
Many apologies - I found the problem. I thought that I was checking to see if
the old exchange was null in my aggregation strategy. I was actually
checking the body of the old exchange for null and thus a null pointer
exception must have been thrown somewhere.
--
View this message in context: http://www.nabble.com/Aggregator-not-working-for-me-in-2.0-tp25202246p25207993.html
Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.