Posted: Mon Nov 04, 2002 11:48 am Post subject: Trouble with MQGET with wait holding a lock on queue....
Newbie
Joined: 12 Aug 2002 Posts: 3
The Scenario:
I have a requesting application which issues an MQPUT on queue 'A', (whereby a receiving application processes the request and posts the reply onto Queue 'B').
This process works perfectly, (with the issue being the receiving application is very slow in responding...)
THE PROBLEM:
The requesting application immediately issues an MQGET on queue 'B' after a successfull MQPUT on queue 'A', (with a specified wait of 15 seconds.)
The problem being that if another user has issued a similar request there seems to be concurrency problems. (ie: The second user is getting an error when trying to use an MQGET on queue 'B')
How does MQSeries handle such scenarios? Will the QM actually block any other MQGET requests if an existing MQGET is still waiting?
What would be a suggested solution here?
Appreciate anyone's advice here!
I have resolved the issue.
If anyone else has a similar problem the solution can be found in the MQSeries APG Chapter 8 - MQOPEN options for removing messages.
Sorry for the premature cry for help.
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