Author |
Message
|
QueenBee |
Posted: Fri Nov 07, 2003 11:33 am Post subject: Get only the first message out |
|
|
Apprentice
Joined: 28 May 2003 Posts: 43 Location: Grand Rapids, MICHIGAN
|
How can i just get the first message out of a queue?
Aix MQ V5.2 CSD04
amqsget would get all of them out. Messages are persistant.
HELP |
|
Back to top |
|
 |
mqonnet |
Posted: Fri Nov 07, 2003 12:21 pm Post subject: |
|
|
 Grand Master
Joined: 18 Feb 2002 Posts: 1114 Location: Boston, Ma, Usa.
|
Modify amqsget to get only 1 message. MQ always follows FIFO, so you would get the first message that was put. But only when you use amqsget without any fancy options. If you do, then you would get a message that matches them. Such as msgid, correlid etc.
Cheers
Kumar |
|
Back to top |
|
 |
wmqiguy |
Posted: Fri Nov 07, 2003 12:23 pm Post subject: |
|
|
 Centurion
Joined: 09 Oct 2002 Posts: 145 Location: Florida
|
You could also take a look at the IH03 Support pac (rfhutil). It has a nice front end gui and allows you to put messages too. It has other features as well, but is easy to use and fairly intuitive. It also has a client version of the program.
Good Luck.  |
|
Back to top |
|
 |
skn |
Posted: Fri Nov 07, 2003 1:51 pm Post subject: |
|
|
 Centurion
Joined: 21 May 2003 Posts: 112 Location: Dallas
|
MQ always follows FIFO, so you would get the first message that was put
That should be fine as long all your messages have same priority.A higher priority message will be picked up first even if it is the last message to arrive. |
|
Back to top |
|
 |
mrlinux |
Posted: Sun Nov 09, 2003 7:19 pm Post subject: |
|
|
 Grand Master
Joined: 14 Feb 2002 Posts: 1261 Location: Detroit,MI USA
|
The order the messages come off the queue are also based on the message delivery sequence attribute (FIFO/Priority) _________________ Jeff
IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries |
|
Back to top |
|
 |
|