Posted: Wed Dec 11, 2002 2:03 am Post subject: More than one Request from a MQClient to a MQManager
Novice
Joined: 08 Oct 2002 Posts: 20
Can there be more than one request initiated (and active at the same time) from the same MQclient to the same Qmanager????
We have a case where we need to send a request (running in an infinite loop) from a client to look for the message in the Queue (Q1) in a Queue manager (QM1) . At the same time we need to add a message to the same Queue (Q1) in the Queue manager (Q1) from the same client.
The second request failed with the error code 2042 (Object in use)
If this means the Q manager lock Do we have any other way to over come this???????
Should we assume these are 2 different application threads?
If so, there is NO application limitation. I have run a large number of MQC application threads from the same workstation putting and getting messages to/from the same queue on a single MQM. Realize that my gets were done using the MSGID.
Can you provide a simple description of your applications MQ logic and the specific queues definition?
In short, we do what you (appear to) are attempting every day without issue.
Check that the application that has the queue open for input specifies MQOO_INPUT_SHARED (Open queue to get messages with shared access). or the equivalent for whatever language you are using.
The 2042 could be due to you already having the object open for exclusive input. Similarly check that the second application is not requesting exclusive access.
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