On Thu, Sep 2, 2010 at 11:09 AM, Olivier.Roger <[email protected]> wrote: > > Hello, > > I would like to have an Aggregator aggregationStrategy that persists > messages. I saw that Camel 2.3 bring some new features to the Aggregator > pattern, including persistence on File with HawtDB. > > Unfortunately, I am currently using Camel 2.2. If possible I would like not > to upgrade for external reasons. > I have a database at my disposal for persistence. > > Here is my question: Does a strategy persisting messages in Database exists > ? if not, would it be difficult to create one according to you ? > > Thanks you ins advance, >
There is this interface http://camel.apache.org/maven/camel-2.2.0/camel-core/apidocs/src-html/org/apache/camel/processor/aggregate/AggregationCollection.html#line.34 Which you can implement yourself and have it persist the messages. Then you can tell the aggregator to use your custom implementation. Mind that this interface is removed in Camel 2.4 onwards, where you can use the built-in HawtDB or implement the org.apache.camel.spi.AggregationRepository and persist yourself. > Olivier > -- > View this message in context: > http://camel.465427.n5.nabble.com/Aggregator-Persistence-tp2800301p2800301.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
