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 » MQCONN to Default QMGR failing with "lock request not g

Post new topic  Reply to topic
 MQCONN to Default QMGR failing with "lock request not g « View previous topic :: View next topic » 
Author Message
mq newguy
PostPosted: Fri Jun 21, 2002 5:36 am    Post subject: MQCONN to Default QMGR failing with "lock request not g Reply with quote

Newbie

Joined: 21 Jun 2002
Posts: 8

In my program on the as400 I am simply reading from a data queue, connecting/opening the default qmgr, building an MQ msg, dropping the msg on a remote queue to be sent out. In our test environment it is working correctly, but after implementing the code on the real prd boxes, the connection to the queue manager appears to be failing.The request gets a MCH2602, "Lock request not given". I seems it is dying in the MQCONN. any help is greatly appreciated heres a snippet



QMName[0] = 0; /* default queue manager */

MQCONN(QMName, /* queue manager */
&Hcon, /* connection handle */ <- dies here!!
&iCompCode, /* completion code */
&iReason); /* reason code */



if (MQIsDown(iReason))
return iReason;

if( iCompCode != MQCC_OK )
{
LogMsg(LOG_DEBUG, "%s: cannot connect to local queue",
pchProgram);
return iReason;
}

strcpy(od.ObjectName, REMOTE_QNAME);
memset(od.ObjectQMgrName, ' ', 10);

O_options = MQOO_OUTPUT + MQOO_FAIL_IF_QUIESCING;

MQOPEN( Hcon, /* connection handle */
&od, /* Q object descriptor */
O_options, /* open options */
&Hobj3, /* object handle */
&iCompCode, /* completion code */
&iReason ); /* reason code */
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Fri Jun 21, 2002 8:35 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3253
Location: London, ON Canada

By specifying a blank (null) queue manager name on the MQCONN, you are requesting that your program be connected to the default local queue manager.

Do you have a queue manager on the production AS/400 box that is marked as the default queue manager?

I prefer to explicitly set the queue manager name on the MQCONN call (I usually read an ini, properties or sysin file first to get the info).

later
Roger...
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » MQCONN to Default QMGR failing with "lock request not g
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.