ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General Discussion » Get only the first message out

Post new topic  Reply to topic
 Get only the first message out « View previous topic :: View next topic » 
Author Message
QueenBee
PostPosted: Fri Nov 07, 2003 11:33 am    Post subject: Get only the first message out Reply with quote

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
View user's profile Send private message
mqonnet
PostPosted: Fri Nov 07, 2003 12:21 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
wmqiguy
PostPosted: Fri Nov 07, 2003 12:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
skn
PostPosted: Fri Nov 07, 2003 1:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
mrlinux
PostPosted: Sun Nov 09, 2003 7:19 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » Get only the first message out
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.