Hi
Please use the user forum / @user mailing list for these kind of questions
On Wed, Mar 1, 2017 at 11:59 PM, sutoa <tong...@hotmail.com> 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=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:
> http://camel.465427.n5.nabble.com/Sjms-batch-consumer-tp5794644.html
> Sent from the Camel Development mailing list archive at Nabble.com.
--
Claus Ibsen
-
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2