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 » 2058 when connecting to local & remote qm's from one pro

Post new topic  Reply to topic
 2058 when connecting to local & remote qm's from one pro « View previous topic :: View next topic » 
Author Message
antishok
PostPosted: Sun Apr 29, 2007 6:44 am    Post subject: 2058 when connecting to local & remote qm's from one pro Reply with quote

Apprentice

Joined: 29 Apr 2007
Posts: 31

Hi,

I'm running 2 MQ servers (5.3) on two PCs with windows, using AMI for C++

My application on the first PC needs to connect both to local queues and connect as a client
to the remote server.
I've created a AMQCLCHL.tab file which points to the second server.
When I connect (open the AMI session) to the local queue manager first, and then
to the remote one, the remote connection fails, giving me MQ error 2058 - I'm assuming that it is
trying to connect to the queue manager at the local host, ignoring the tab file
When I connect to the remote one first, it connects and works,
but then when I connect to the local one, it seems to connect (no exception is thrown) but my sent message
does not appear on the queue. (the queue is actually a remote definition of a queue on the remote server)

any advice?
I know I haven't given much details, but I'm not sure which other details are needed,
please let me know what additional info I should supply

Thank you,
Uri Gilad
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Sun Apr 29, 2007 8:34 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You need to connect to both qmgrs as a client, regardless of the fact that one is a local qmgr.

This means you need to specify your connection with hostname,channel, and port.

Probably, the AMI (which is deprecated and you shouldn't use for anything new) is deciding that you want to use a bindings connection if you connect to the local qmgr first.

You should a) make sure your v5.3 is running at CSD13 (or the latest, if a newer one has snuck out when I wasn't paying attention)0, and b) probably switch to using XMS instead of AMI.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
antishok
PostPosted: Sun Apr 29, 2007 8:59 am    Post subject: Reply with quote

Apprentice

Joined: 29 Apr 2007
Posts: 31

connecting only as a client did the trick,
thank you very much

indeed, we are planning to switch to XMS asap
AMI is a load of crap
Back to top
View user's profile Send private message
Vitor
PostPosted: Sun Apr 29, 2007 10:23 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

antishok wrote:
AMI is a load of crap


As jefflowrey points out, the corect term is "depreciated", but from a functional standpoint you're quite right!

This is why IBM depreciated AMI and produced XMS.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Sun Apr 29, 2007 12:01 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Actually, what I've been told is that AMI was deprecated because nobody other than IBM adopted the standard...

And they produced XMS because you can't use JMS from C++.
_________________
I am *not* the model of the modern major general.
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 » 2058 when connecting to local & remote qm's from one pro
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.