Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MQRC_Q_MGR_NOT_AVAILABLE Error when using MQ Series ActiveX Components

Status
Not open for further replies.

toraltaunk

Programmer
Jan 30, 2003
1
IN
Hi,
I am trying to put a message in a IBM Websphere MQ Queue "ADVSHIPNOTIFYINBOUND_OUTQ"
of a Queue Manager : "QM_00014_USNavy" through my asp code as follows:
Set MQSess = CreateObject("MQAX200.MQSession")
Set QMgr = MQSess.AccessQueueManager("QM_00014_USNavy")
Set Queue = QMgr.AccessQueue("ADVSHIPNOTIFYINBOUND_OUTQ", MQOO_OUTPUT)

Set PutMsg = MQSess.AccessMessage()
PutMsgStr = "Hello World "
PutMsg.MessageData = PutMsgStr
Set PutOptions = MQSess.AccessPutMessageOptions()
Queue.Put PutMsg, PutOptions

i am getting the following error :
Error Type:
mqax200 (0x800A7D00)
MQAX200.MQSession::AccessQueueManager CompletionCode = 2, ReasonCode = 2059, ReasonName = MQRC_Q_MGR_NOT_AVAILABLE

for the following line of code :
Set QMgr = MQSess.AccessQueueManager("QM_00014_USNavy")

What could be the reason.
When i run the above code in VB on Form_Load() it works but it gives error when writing in an asp page.

Toral
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top