On Wed, Nov 17, 2010 at 11:06 AM, Olivier.Roger <[email protected]> wrote: > > Well, I modified the HawtDB codec to remove all hawtbuf import and simply > (un)marshall the exchange to/from byte[]. Those byte arrays are kept in Blob > field in the database using the default LobHandler. > > Key are stored directly as String and therefore, do not need to be > converted. > With theses modifications, the repository appears to be functional. At least > my few unit test still pass. >
Great sounds like you are on a good start and that a JDBC based persistent store is on the way :) > I also used Spring to set all method as Transactional. > Therefore I would like to add unit tests to validate each possible use case > (message lost at any step of the process, SQL exception, ...) > > I hoped I could start by adapting the tests done for > HawtDBAggregationRepository but I could not find any tests in the > distributed Jar. Is there somewhere I could find sample tests for a > Persistent Aggregation Repository? You can look in the source code http://camel.apache.org/source.html For the camel-hawtdb component. > -- > View this message in context: > http://camel.465427.n5.nabble.com/Aggregator-Persistence-tp2800301p3268799.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
