Posted: Thu Mar 31, 2016 12:10 pm Post subject: Re: Batch of messages from MQ usign Java Compute Node
Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
phaniIIB wrote:
How to retrieve a batch of messages together from MQ using Java compute node.
You don't.
All MQ interaction is handled by the broker through the 3 MQ nodes. Attempting to access the queue manager directly will (at best) break the transactionality of your flow and (at worst) bring the broker down round your ears.
If you want to process a group of messages from MQ, use the MQ grouping feature, read them with an MQInput node and pass the group to your JCN.
If you want to process a batch of unconnected messages from MQ because you (for example) want to perform a batch update of a database, rethink your design. _________________ Honesty is the best policy.
Insanity is the best defence.
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