|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Can application linked to server libraries work as clients |
« View previous topic :: View next topic » |
Author |
Message
|
boydl |
Posted: Wed Aug 17, 2005 5:43 pm Post subject: Can application linked to server libraries work as clients |
|
|
Novice
Joined: 05 Feb 2003 Posts: 16
|
Hi,
Just wondering ... can application built in C/C++ that are compiled and linked with the MQ Server libraries be used as an MQ client application without relinking the codes? Is there any code changes required? Can I use the application that are linked with the server libraries be used as a server app in one instance and client in another?
thanks in advance
BLim |
|
Back to top |
|
 |
hopsala |
Posted: Thu Aug 18, 2005 12:33 am Post subject: |
|
|
 Guardian
Joined: 24 Sep 2004 Posts: 960
|
Quote: |
can application built in C/C++ that are compiled and linked with the MQ Server libraries be used as an MQ client application without relinking the codes? |
To my knowledge and according to the literature, No.
Quote: |
Is there any code changes required? |
Happily No.
Quote: |
Can I use the application that are linked with the server libraries be used as a server app in one instance and client in another? |
That's the same question as the first, repharsed. The answer is still no.
What you do in such cases, is link with the client library, and if you wish to work on a local QM simply work as a client but locally - specify localhost in the MQSERVER. This gives you the option to use the same complied program to work either locally or remote.
There is very little performance degradation for clients when working locally. |
|
Back to top |
|
 |
bower5932 |
Posted: Thu Aug 18, 2005 6:29 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
You might be able to get away with coding your program to have stub API calls that get resolved at runtime through the use of LoadLibrary and GetProcAddr. Take a look at the ntloadmq.c program at:
http://www.developer.ibm.com/isv/tech/sampmq.html |
|
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
|
|
|
|