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 » IBM MQ API Support » Connecting a client to a server using MQCONNX

Post new topic  Reply to topic
 Connecting a client to a server using MQCONNX « View previous topic :: View next topic » 
Author Message
wardk
PostPosted: Wed Jun 18, 2003 5:01 am    Post subject: Connecting a client to a server using MQCONNX Reply with quote

Newbie

Joined: 18 Jun 2003
Posts: 2

I have a Websphere MQ 5.3 server setup on a win2k machine. I have the Client setup on another machine on the same peer to peer lan. If I try to connect from the client to the server using MQCONNX I always get error 2058 no matter what I fill the client structure with. If I run the same code on the server it works fine, it ignors the hostname, portnumber and channel name.

The server details are only available at runtime.

Help!
_________________
Kev Ward
Back to top
View user's profile Send private message Send e-mail
clindsey
PostPosted: Wed Jun 18, 2003 8:09 am    Post subject: Reply with quote

Knight

Joined: 12 Jul 2002
Posts: 586
Location: Dallas, Tx

Try connecting from your client using amqscnxc. This is the supplied c sample that uses mqconnx. This will validate your setup and queue manager name.

The syntax is
amqscnxc -x conname -c serverconnchannelname qmgrname.

Then you can compare your code with this sample. There is also a VB sample amqscnxb.

It could be that your code if fine but you are linking with server libraries.
Be sure you are linking with the client libraries only.

Charlie
Back to top
View user's profile Send private message
wardk
PostPosted: Wed Jun 18, 2003 9:21 am    Post subject: Reply with quote

Newbie

Joined: 18 Jun 2003
Posts: 2

Thanks mate.

There's more to this than it seems! There are so many variables with this shit.

I've now recompiled with mqic32.lib rather than mqm.lib and other things started to happen...Even though I had the client install, all the dlls were in the wrong place...

I think I've got it cracked now.

Thanks for making the effort!

Kev.
_________________
Kev Ward
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Connecting a client to a server using MQCONNX
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.