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 Discussion » Can application linked to server libraries work as clients

Post new topic  Reply to topic
 Can application linked to server libraries work as clients « View previous topic :: View next topic » 
Author Message
boydl
PostPosted: Wed Aug 17, 2005 5:43 pm    Post subject: Can application linked to server libraries work as clients Reply with quote

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
View user's profile Send private message
hopsala
PostPosted: Thu Aug 18, 2005 12:33 am    Post subject: Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Thu Aug 18, 2005 6:29 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » Can application linked to server libraries work as clients
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.