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 Discussion » Getting inconsistent errors with queue manager.

Post new topic  Reply to topic
 Getting inconsistent errors with queue manager. « View previous topic :: View next topic » 
Author Message
prithun
PostPosted: Wed Apr 20, 2005 8:26 am    Post subject: Getting inconsistent errors with queue manager. Reply with quote

Apprentice

Joined: 08 Apr 2005
Posts: 33

I am using multiple threads to get messages from the queue. But sometimes only the first thread is able to get messages and the other threads fail saying

Cannot connect to QMGR(queue manager). Reason code is 2059

I am using MQOO_INPUT_SHARED option to connect to the queue.

The application that puts the message on to the queue is not multithreaded and is not connected with the SHARED option.

Also I am using setConnectOptions(MQCNO_HANDLE_SHARE_BLOCK) for the threads only.
Can anybody find the problem?
Back to top
View user's profile Send private message
prithun
PostPosted: Wed Apr 20, 2005 8:55 am    Post subject: Reply with quote

Apprentice

Joined: 08 Apr 2005
Posts: 33

Is there any restriction on the number of threads that can subscribe concurrently from a queue?

I succeeded in getting the messages from the queue with 2 threads.Everything is working fine with 2 threads.But when I increase the number of threads everything goes wrong.
Back to top
View user's profile Send private message
csmith28
PostPosted: Wed Apr 20, 2005 3:54 pm    Post subject: Reply with quote

Grand Master

Joined: 15 Jul 2003
Posts: 1196
Location: Arizona

Well I am not aware of any limitation on the number of IPROCS you can have on a Queue.

Here is what the WMQ Messages guide has to say about Reason Code 2059:

Quote:
2059 X’080B’ MQRC_Q_MGR_NOT_AVAILABLE
On an MQCONN or MQCONNX call, the queue manager identified by the QMgrName
parameter is not available for connection.
v On z/OS:
– For batch applications, this reason can be returned to applications running in
non-WebSphere MQ LPARs.
– For CICS applications, this reason can occur on any call if the original connect specified a
queue manager whose name was recognized, but which is not available.
v On OS/400, this reason can also be returned by the MQOPEN and MQPUT1 calls, when
MQHC_DEF_HCONN is specified for the Hconn parameter by an application running in
compatibility mode.
This reason code can also occur if a WebSphere MQ client application attempts to connect to a
queue manager within a WebSphere MQ client queue-manager group when none of the queue
managers in the group is available for connection (see the QMgrName parameter of the
MQCONN call).
This reason code can also occur if the call is issued by a WebSphere MQ client application and
there is an error with the client-connection or the corresponding server-connection channel
definitions.
On z/OS, this reason code can also occur if the optional OS/390® client attachment feature
has not been installed.
Corrective action: Ensure that the queue manager has been started. If the connection is from a
client application, check the channel definitions.

_________________
Yes, I am an agent of Satan but my duties are largely ceremonial.
Back to top
View user's profile Send private message
prithun
PostPosted: Wed Apr 20, 2005 8:13 pm    Post subject: Reply with quote

Apprentice

Joined: 08 Apr 2005
Posts: 33

The queue manager is started even after it shows the error.
When I try to start the queue manager again it is showing

WebSphere MQ queue manager running.
Back to top
View user's profile Send private message
csmith28
PostPosted: Wed Apr 20, 2005 8:18 pm    Post subject: Reply with quote

Grand Master

Joined: 15 Jul 2003
Posts: 1196
Location: Arizona

Um, I think the most relavent part is:

This reason code can also occur if the call is issued by a WebSphere MQ client application and
there is an error with the client-connection or the corresponding server-connection channel
definitions.
_________________
Yes, I am an agent of Satan but my duties are largely ceremonial.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » Getting inconsistent errors with queue manager.
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.