Hi You want to consume X messages from a JMS queue and then process them as a single unit of work (together in one transaction)?
I guess other from eg ActiveMQ user forum had a similar use-case, so maybe there is a answer there. If you want true transaction then it should be the backing system (the JMS broker) than is the TX manager, and thus the Camel's DeadLetterChannel is not used. But I dont know how or if its possible to consume X messages as a batch. Maybe there are some safe points or (start batch, end batch) commands that can be invoked to the JMS broker. Any other with such experience? On Fri, Dec 12, 2008 at 11:27 AM, gnoremac <[email protected]> wrote: > > I would like to consume batches of messages off of a queue and process them > together. If something goes wrong during the processing I would like to have > the batch redelivered. The Aggregator seems like it would be the ideal > approach for this but requires an XA transaction which I would like to > avoid. > > Would the next best approach be to use a PollingConsumer? How can you > control the transaction boundaries when configuring the route? > > > > > > -- > View this message in context: > http://www.nabble.com/Batch-Message-Consuming-tp20973098s22882p20973098.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- /Claus Ibsen Apache Camel Committer Blog: http://davsclaus.blogspot.com/
