camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Sjms batch consumer
Date Thu, 02 Mar 2017 08:11:57 GMT

Please use the user forum / @user mailing list for these kind of questions

On Wed, Mar 1, 2017 at 11:59 PM, sutoa <> wrote:
> Hi,
> I'm trying to use Camel SJMS to batch process messages from IBM MQ.
> As a first step, I am using activeMQ.
> My goal is to batch read a chunk of messages from JMS, do some processing
> and insert them to a database. From reading some old posts, I am doing the
> following.
> from("sjms:myq?transacted=true&trasactionBatchCount=1000").process(myProcessor)
> My processor gets exchanges at the single message level instead of 1000
> messages in one go. This is consistent with what i read. My question is that
> how does SJMS coordinate the transaction management between Q and db? i
> didn't add any Transaction Manager in the camel context. Will all my db
> inserts be bundled into one batch commit?
> When I worked on some other project in Spring Integration, I used to have to
> provide a transaction manager to the app context to be shared by the JMS
> message listener and the database datasource.
> Thanks,
> Tong
> --
> View this message in context:
> Sent from the Camel Development mailing list archive at

Claus Ibsen
----------------- @davsclaus
Camel in Action 2:

View raw message