|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Error code - 2059 when using COM object model |
« View previous topic :: View next topic » |
Author |
Message
|
mani1209 |
Posted: Tue Mar 24, 2009 3:50 am Post subject: Error code - 2059 when using COM object model |
|
|
Newbie
Joined: 24 Mar 2009 Posts: 1
|
Hi
I am trying to access a message queue through IBM Websphere MQ client that i have installed on my windows machine to a message queue on a server on a different machine.
1. I have set the variable MQSERVER in the user variables as the following
REM.MX/TCP/161.90.1.43(3200)
Q. There are two channels one for receiving and sending, I have specificed the receiving channel above, is that correct?
2. My application uses vbscript, so I am trying to use vbscript to access the queue
QMgr = "VD"
QName = "MGS"
set Mqs = CreateObject("MQAX200.MQSession")
Set qm = MqS.AccessQueueManager(QMgr)
When I try to run the script above, it fails with the message error code - 2059.
3. I have tried running the command amqsputc QUEUE1 qmgr, the message dispayed is error - MQCONN ended with reason code 2059.
Any help on the above will be highly appreciated. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Mar 24, 2009 3:58 am Post subject: Re: Error code - 2059 when using COM object model |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mani1209 wrote: |
Any help on the above will be highly appreciated. |
Search the forum for the various discussions of this very, very common error code, and diagnose as appropriate.
As always, I'll remind you it might not be a problem with your code. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Sam Uppu |
Posted: Thu Mar 26, 2009 7:09 am Post subject: Re: Error code - 2059 when using COM object model |
|
|
 Yatiri
Joined: 11 Nov 2008 Posts: 610
|
mani1209 wrote: |
Hi
I am trying to access a message queue through IBM Websphere MQ client that i have installed on my windows machine to a message queue on a server on a different machine.
1. I have set the variable MQSERVER in the user variables as the following
REM.MX/TCP/161.90.1.43(3200)
Q. There are two channels one for receiving and sending, I have specificed the receiving channel above, is that correct?
2. My application uses vbscript, so I am trying to use vbscript to access the queue
QMgr = "VD"
QName = "MGS"
set Mqs = CreateObject("MQAX200.MQSession")
Set qm = MqS.AccessQueueManager(QMgr)
When I try to run the script above, it fails with the message error code - 2059.
3. I have tried running the command amqsputc QUEUE1 qmgr, the message dispayed is error - MQCONN ended with reason code 2059.
Any help on the above will be highly appreciated. |
Please make sure you are providing the correct QMgr name and the port on which it is listening. These two are major for this error. Also make sure the QMgr-listener is running on this port.
Thanks. |
|
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
|
|
|
|