Search This Blog

Wednesday, June 16, 2010

C++ MQ application without MQ Client installation

The next stuff tested on mq v5.3.
Sometimes your program run on the same machine where the MQ server is installed , so why to install MQ client on this server , if you have the MQ server there ??
the "Trick" is in your app development , you need to compile and link your application with the correct MQ library , client or server.Usually the server library contains  the s character and the client with the c.
e.g. imq{c|s}23in, imq{c|s}23vn.

when dealing with server binding you need to know the next stuff, the channel name and the server name is ignored, the important parameters is just the queue manager name , and the queues name.
In case you want to connect to the default queue manager name leave the queue manager name empty.

Enjoy
Yaniv T

No comments: