toraltaunk
Programmer
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
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