Hi The camel-jms components uses Spring DMLC for consuming messages. And its not designed for batched transactions in mind. And therefore this is not supported in Camel out of the box.
You would need to use the JMS API for that. On Sat, Apr 14, 2012 at 2:20 PM, Thomas Johansen <thxm...@gmail.com> wrote: > Hi, > > How can I consume multiple JMS messages in one single transaction with > Camel? Is it even possible? > > from("jms:myqueue").transacted().to("something") will create a transaction > per consumed message, which is not what I want. > > I actually want to consume X messages, aggregate them to a report and then > produce that report to the same JMS resource... > > Takk, > Thomas -- Claus Ibsen ----------------- CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/