this is a really old thread, but I'm wondering if anyone has any updated ideas on this...I have a similar requirement to read from an AMQ queue, batch X messages together and then process. I'm currently doing this with the aggregator/hawtdb repo combination but performance is proving too slow...
I'd think it would be faster/cleaner to just be able to read multiple from the queue in a transaction, aggregate together, process, then end the transaction... any ideas? David J. M. Karlsen wrote > Looking at this thread I wonder the same. > > During a resource local jmstransaction you are able to fetch several > messages - but there is no way in camel to control the commit size. > You can do the same during a XA tx. > > I see no support for batching here: > http://camel.apache.org/batch-consumer.html. > > Either transaction mode would benefit a lot if you could process several > messages in one go. > > Typical usecase would be tx( N messages, process them in paralell, > aggregate and send out ) ----- Ben O'Day IT Consultant -http://consulting-notes.com -- View this message in context: http://camel.465427.n5.nabble.com/Transactional-batching-tp474002p5730245.html Sent from the Camel - Users mailing list archive at Nabble.com.