I got many messages in local queue.I don't want to clear all the messages on one shot.So..i am writing a java program.,which would select the particular message & delete it from the message queue.
Is there any predefined method to delete message based on the parameter we pass.
Do anyone know what will "removeElementAt()" method does?.
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
"Is there any predefined method to delete message based on the parameter we pass."
-Yes, it's called doing an MQGET
An MQGET will effectively delete a particular message from the queue if you specify some uniquely identifying set of parameters (usually just message id or correl id). The MQGET will remove this message from the queue, and then you're free to dereference the message object and let java garbage collect it for you.
_________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
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