Posted: Thu Nov 30, 2006 9:29 am Post subject: Messages in Queue
Centurion
Joined: 20 Jul 2003 Posts: 131
Hello All
I have a question about how MQ behaves under the following condition.
App A is sending messages to App B and waiting for response. Somehow App B is not responding within the timeout period and the App A is getting TimeOut Error.
The message is retained in the Queue. Now if App A sends another message to B and App B responds within the Timeout, will the old (retained) message block App A from GETting the new message? If there are multiple messages retained (say 1000), Will App A have any time lag in getting the good message?
Now that queue is FIFO. Please help me understand. Thanks
Perhaps you should set an expiry on the reply message from B?
MQGuy2000 wrote:
The message is retained in the Queue. Now if App A sends another message to B and App B responds within the Timeout, will the old (retained) message block App A from GETting the new message?
Is app A getting by a correlation ID or some other identifier? Or is it just picking up the first message?
If you have read the Application Programming guide, and you have implemented a proper Request/Reply pattern, then the answer to your question is "No."
If you have not implemented a proper request/reply pattern, then the answer to your question is -
It depends on how you wrote your code. But one message never "blocks" another message. _________________ I am *not* the model of the modern major general.
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