Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connecting to a queue manager on remote machine

Status
Not open for further replies.

palos

Programmer
Nov 6, 2001
1
US
I am really a newbie in the MQSeries since this is a new project for me so expect some questions which to you may be very obvious.

I am using Win NT and has MQSeries server installed in my machine. But I like to connect to a queue manager in a remote machine. I can connect using the MQSeries Explorer. However, I want to know how to do that programatically. How do you get the server, queue manager name, and TCP port into the code? (I prefer C or VB but pseudocode is alright).

Another thing: I see most of you suggesting setting environment variables to set up default queue managers and other stuff. Where do I get a docu on these variables?

Thanks a lot!
 
If you want to connect as client to a queue manager running on other machine, you should read MQ Series Client" manual. It talks about setting MQSERVER variable which define connectivity to server. Also, you could copy the channel table from the Server and use MQCHL??? variable to point to this table and go from there.

There is sample code amqsputc, amqsgetc ( note "c" at the end for client). The client code has to be linked to client lib.

MiddlewareOnline.com IBM MQ Series Certified Consultants
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top