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 » Error code - 2059 when using COM object model

Post new topic  Reply to topic
 Error code - 2059 when using COM object model « View previous topic :: View next topic » 
Author Message
mani1209
PostPosted: Tue Mar 24, 2009 3:50 am    Post subject: Error code - 2059 when using COM object model Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Tue Mar 24, 2009 3:58 am    Post subject: Re: Error code - 2059 when using COM object model Reply with quote

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
View user's profile Send private message
Sam Uppu
PostPosted: Thu Mar 26, 2009 7:09 am    Post subject: Re: Error code - 2059 when using COM object model Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Error code - 2059 when using COM object model
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.