Posted: Fri Feb 11, 2005 5:07 pm Post subject: amqsget question
Novice
Joined: 12 Jan 2004 Posts: 21 Location: Chicago, IL
Hi, can someone tell me if the amqsget utility has the ability to fetch one message at a time or does it pull all messages from the queue in one shot?
The reason I am asking this is that I have a requirement where I have to fetch one message at a time from a queue and write it to a file. So if a queue has 10 messages on it this script should be able to get them one at a time and write each one to a seperate file (creating 10 files). Canm some one point me in the right direction on how to do this?
amqsget gets all messages in a distructive manor but it is limited out of the "sample" box to messages that are 100 bytes or smaller.
If you want to use amqsget to achieve the stated goal you will have to modify and re-compile.
However I believe there is a Support Pack that will allow you to do this on the IBM Web Site. _________________ Yes, I am an agent of Satan but my duties are largely ceremonial.
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