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 » General IBM MQ Support » More than one Request from a MQClient to a MQManager

Post new topic  Reply to topic
 More than one Request from a MQClient to a MQManager « View previous topic :: View next topic » 
Author Message
nirmala
PostPosted: Wed Dec 11, 2002 2:03 am    Post subject: More than one Request from a MQClient to a MQManager Reply with quote

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???????
Back to top
View user's profile Send private message
MichaelR
PostPosted: Wed Dec 11, 2002 6:14 am    Post subject: Reply with quote

Apprentice

Joined: 20 May 2002
Posts: 37
Location: Tampa

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.

Back to top
View user's profile Send private message
vmcgloin
PostPosted: Wed Dec 11, 2002 6:33 am    Post subject: Reply with quote

Knight

Joined: 04 Apr 2002
Posts: 560
Location: Scotland

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.
Back to top
View user's profile Send private message
bower5932
PostPosted: Wed Dec 11, 2002 6:34 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Did you open your queue as MQOO_INPUT_EXCLUSIVE? If so, that will keep your second request from getting the queue open.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » More than one Request from a MQClient to a MQManager
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.