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 » How to include ip address in MQ program?

Post new topic  Reply to topic
 How to include ip address in MQ program? « View previous topic :: View next topic » 
Author Message
vrihari
PostPosted: Tue Dec 20, 2005 7:46 am    Post subject: How to include ip address in MQ program? Reply with quote

Newbie

Joined: 14 Dec 2005
Posts: 5

Hi friends,

I have a doubt in getting reply from reply Q using C program.
For getting MQ reply, i found one program in "amqsbcg0.c", to act as client i did some modification as said in this link
"http://www3.sympatico.ca/n.rieck/docs/mqseries_client_on_openvms.html#qqb1a"
under the topic
"Building MQ client "C language" programs using "Microsoft Visual C++ 6""
Then i specified arguments as what they said,
Qmanager Name:
Queue Name:

After that, when i execute this program, I'm getting 2058 error. I not sure where I'm doing the mistake. I hope we have to mention the ip address of the remote machine, where the QMgr resides, if that is the case how i have to do? Please Help ? If not the case, then where is the problem?

Thanks in advance
Harikumar.B
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Tue Dec 20, 2005 7:52 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The sample amqsbcg0.c is written intending to use the environment variable called MQSERVER.

This variable holds a value built of three parts: the channel name, the transport type, and the connection name. A sample is "SYSTEM.DEF.SVRCONN/TCP/localhost(1414)".

The connection name is built of the ip or hostname of the machine, followed by a port number for the mq listener in parentheses.

You should spend some good time reading the Application Programming Guide and the Clients manual.

And you can look at the other sample amqscnxc.c, whihc uses the MQCONNX call instead of the MQCONN call.
_________________
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 » How to include ip address in MQ program?
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.