Hi Just to inform that I have created a ticket on our issue tracker, for improving the wiki documentation for the aggregator https://issues.apache.org/activemq/browse/CAMEL-951
BTW: The aggregator EIP is documented here: http://activemq.apache.org/camel/aggregator.html Usually studying the source code for the unit can help. And the javadoc for the classes. AggregationCollection is what you will get when its complete. It has a size and iterate method where you can "iterate" all the exchanges. Med venlig hilsen Claus Ibsen ...................................... Silverbullet Skovsgårdsvænget 21 8362 Hørning Tlf. +45 2962 7576 Web: www.silverbullet.dk -----Original Message----- From: huntc [mailto:[EMAIL PROTECTED] Sent: 1. oktober 2008 02:35 To: [email protected] Subject: RE: How to use Aggregator and AggregationCollection? Hi Claus, Thank you very much for your reply. My response: Claus Ibsen wrote: > > Do you have any predicates for when the files have reached the end? > I believe that the aggregator's default predicate is to timeout after 1 second or 100 exchanges. Claus Ibsen wrote: > > See the loan broker example: > http://activemq.apache.org/camel/loan-broker-example.html > that shows how to use aggregate. A good example that is. > Thank you. I have studied this example. Claus Ibsen wrote: > > For instance the file consumer could be improved to determine the list of > files at first, and then afterwards iterate this list so it can add this > metadata itself to each exchange. Then you can determine the completed > predicate. However I can see this problem for other consumers as well, so > a more general solution would be nice to discuss. For instance maybe we > need something extra to polling consumers so they can support callbacks > for end. > I think that what I need to do is within the realms of the aggregator we have, and perhaps the aggregator collection class that we have. I just do not understand how they can work in this instance. For example, there are no examples re. how an aggregator collection class operates. Thanks once again. Kind regards, Christopher -- View this message in context: http://www.nabble.com/How-to-use-Aggregator-and-AggregationCollection--tp19739918s22882p19752772.html Sent from the Camel - Users mailing list archive at Nabble.com.
