|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQCONN to Default QMGR failing with "lock request not g |
« View previous topic :: View next topic » |
Author |
Message
|
mq newguy |
Posted: Fri Jun 21, 2002 5:36 am Post subject: MQCONN to Default QMGR failing with "lock request not g |
|
|
 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 |
|
 |
RogerLacroix |
Posted: Fri Jun 21, 2002 8:35 pm Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|