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 » Could I connect to a remote MQ directly use C?

Post new topic  Reply to topic
 Could I connect to a remote MQ directly use C? « View previous topic :: View next topic » 
Author Message
ioat
PostPosted: Fri Apr 27, 2007 1:49 am    Post subject: Could I connect to a remote MQ directly use C? Reply with quote

Acolyte

Joined: 18 Jul 2005
Posts: 53

I want to connect to a remote MQ directly use C. I look through the MQ doc, only find MQCONN and MQCONNX. Didn't find how to pass into the IP/port
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Apr 27, 2007 2:02 am    Post subject: Reply with quote

Grand High Poobah

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

You need MQCONNX, which allows these details to be submitted through the MQCD structure.

Check the Application Programming Reference for full details. The Clients manual may be of use as well.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Apr 27, 2007 4:25 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Or use MQCONN, and environment variables MQSERVER or the variables for setting the MQ Client Channel.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Apr 27, 2007 4:50 am    Post subject: Reply with quote

Grand High Poobah

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

jefflowrey wrote:
Or use MQCONN, and environment variables MQSERVER or the variables for setting the MQ Client Channel.


He did say "directly"...

...but that's why I pointed him in the direction of the Client manual. You are of course quite right in what you say.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
ioat
PostPosted: Fri Apr 27, 2007 5:16 pm    Post subject: Reply with quote

Acolyte

Joined: 18 Jul 2005
Posts: 53

Thanks very much.

I'll look through the MQCD struct.

One more question, must I start MQ client? Could I simply connect to remote MQ directly with only C program?
Back to top
View user's profile Send private message
ioat
PostPosted: Fri Apr 27, 2007 6:51 pm    Post subject: Reply with quote

Acolyte

Joined: 18 Jul 2005
Posts: 53

Must I install a WebSphere MQ client on the client machine?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Apr 27, 2007 7:40 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

ioat wrote:
Must I install a WebSphere MQ client on the client machine?


Only if you wish to establish a client connection.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
ioat
PostPosted: Fri Apr 27, 2007 11:48 pm    Post subject: Reply with quote

Acolyte

Joined: 18 Jul 2005
Posts: 53

Got it, both of you are right. Thanks again.
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 » IBM MQ API Support » Could I connect to a remote MQ directly use C?
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.