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 » IBM MQ API Support » mqconn/mqconnx and lib mqm/mqic

Post new topic  Reply to topic
 mqconn/mqconnx and lib mqm/mqic « View previous topic :: View next topic » 
Author Message
erg
PostPosted: Thu Mar 08, 2007 6:56 pm    Post subject: mqconn/mqconnx and lib mqm/mqic Reply with quote

Newbie

Joined: 08 Mar 2007
Posts: 2

Hi,

I have an installation where I have two different configurations: one machine has a local mq server installation and i run on that machine with local queues (using MQCONN), and another machine has my client application which connects to that same server remotely (using MQCONNX). These are both running on solaris.

Currently i build two versions of my app, one with lib mqm (for remote queues) and one with mqic (local queues).

Is it possible to configure MQ and build an app in such a way that you can use the same binary application to connect to both local server/local queues and to a remote server/remote queues? e.g. Can you configure channels on a server installation such that you can use MQCONNX to connect to it, even from the same machine?

I've seen other related postings, but they all seem to indicate that you need to link to different libs. Is this an MQ peculiarity that you have to build two versions of an app depending on where the server resides?

Many thanks,
erg.
Back to top
View user's profile Send private message
jsware
PostPosted: Fri Mar 09, 2007 12:21 am    Post subject: Re: mqconn/mqconnx and lib mqm/mqic Reply with quote

Chevalier

Joined: 17 May 2001
Posts: 455

erg wrote:
Is it possible to configure MQ and build an app in such a way that you can use the same binary application to connect to both local server/local queues and to a remote server/remote queues? e.g. Can you configure channels on a server installation such that you can use MQCONNX to connect to it, even from the same machine?

Yes it is entirely possible to do this by dynamically loading the library at runtime. We do this with a wrapper library which goes looking for MQ server libraries first and then loads MQ client if server is not found. It has to be platform specific.

Have a look in the C++ repository here on mqseries.net at the ntloadmq, sunloadmq and slloadmq samples for Windows, Sun and AIX examples.
_________________
Regards
John
The pain of low quaility far outlasts the joy of low price.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Mar 09, 2007 4:32 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The perl modules do this as well, although they strongly prefer the server bindings connection when available.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » mqconn/mqconnx and lib mqm/mqic
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.