|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to include ip address in MQ program? |
« View previous topic :: View next topic » |
Author |
Message
|
vrihari |
Posted: Tue Dec 20, 2005 7:46 am Post subject: How to include ip address in MQ program? |
|
|
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 |
|
 |
jefflowrey |
Posted: Tue Dec 20, 2005 7:52 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|