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 » IBM MQ API Support » Get messages in LIFO order

Post new topic  Reply to topic Goto page Previous  1, 2, 3
 Get messages in LIFO order « View previous topic :: View next topic » 
Author Message
jefflowrey
PostPosted: Thu Dec 28, 2006 7:26 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Any "search" or "browse" of the queue is not going to be atomic with respect to the get. This means that it's entirely possible to find the "newest" message on the queue, and then go to get it, but in the meantime there was another and newer message added to the queue.

A real LIFO implementation would be required to eliminate this window of opportunity, and MQ is NOT and can NOT be made into a real LIFO implementation. The only way with a FIFO implementation to ensure that you always get the newest message is to ensure that the queue always only has one message on it.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
mvarghese
PostPosted: Thu Dec 28, 2006 8:42 pm    Post subject: Reply with quote

Centurion

Joined: 27 Sep 2006
Posts: 141

If can use Adapters like Jtext..can able to read message in LIFO.Right?
_________________
Jain Varghese
Back to top
View user's profile Send private message
pathipati
PostPosted: Thu Dec 28, 2006 8:47 pm    Post subject: Reply with quote

Master

Joined: 03 Mar 2006
Posts: 296

You can't use JText adapter to read from a queue and even it does't support LIFO.
Back to top
View user's profile Send private message Yahoo Messenger
mvarghese
PostPosted: Thu Dec 28, 2006 10:01 pm    Post subject: Reply with quote

Centurion

Joined: 27 Sep 2006
Posts: 141

Jtext can read message froma Queue or can use message from a directory to a queue.
1.If they can read first message put in a directory, then J text can read based on time <configuration settings in Jtext> and put back to another Q...so that application can read in FIFO..but now...Messages came in reverse order...Its a long procedure..
_________________
Jain Varghese
Back to top
View user's profile Send private message
pathipati
PostPosted: Thu Dec 28, 2006 10:10 pm    Post subject: Reply with quote

Master

Joined: 03 Mar 2006
Posts: 296

Quote:
Jtext can read message froma Queue or can use message from a directory to a queue.
Jtext can be used to read from a directory.

Why exactly you want LIFO?
How can you say one particular message is the last message?
Will you do the routing periodically?
Back to top
View user's profile Send private message Yahoo Messenger
tleichen
PostPosted: Fri Dec 29, 2006 6:35 am    Post subject: Reply with quote

Yatiri

Joined: 11 Apr 2005
Posts: 663
Location: Center of the USA

I think this horse has been whipped dead. Let's just bury it!
_________________
IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2, 3 Page 3 of 3

MQSeries.net Forum Index » IBM MQ API Support » Get messages in LIFO order
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.