Posted: Thu Jun 14, 2007 12:20 pm Post subject: Commit 20 messages & go back to process the rest
Apprentice
Joined: 11 Apr 2007 Posts: 30
We are generating XML messages for records in a database table using message broker flow. The question is: once I generate 20 XML messages (500 records per message)and propogate them to MQ output node, I want to commit those messages (so that I don't run out of MQ log space) and continue in the loop (in the currently running message flow)and process the rest of the records in the source database. Is there a way I can execute a commit command in ESQL that would allow me to commit the 20 message I put on MQ?
Two things to try - I don't know that either of them will work the way you want them to.
1) Set the MQInput node to Commit On Group, and build your output messages in logical groups of 20. This *might* cause the whole group to be committed.
2) Try using a DestinationList and the TransactionMode element in that list. Set it to Yes for the first 19 messages, and then no for the 20th, and etc. This *might* cause the uncommitted messages to be committed - as long as it's all the same MQOutput node. _________________ I am *not* the model of the modern major general.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum