Author |
Message
|
jefflowrey |
Posted: Thu Dec 28, 2006 7:26 pm Post subject: |
|
|
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 |
|
 |
mvarghese |
Posted: Thu Dec 28, 2006 8:42 pm Post subject: |
|
|
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 |
|
 |
pathipati |
Posted: Thu Dec 28, 2006 8:47 pm Post subject: |
|
|
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 |
|
 |
mvarghese |
Posted: Thu Dec 28, 2006 10:01 pm Post subject: |
|
|
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 |
|
 |
pathipati |
Posted: Thu Dec 28, 2006 10:10 pm Post subject: |
|
|
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 |
|
 |
tleichen |
Posted: Fri Dec 29, 2006 6:35 am Post subject: |
|
|
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 |
|
 |
|