|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
mqconn/mqconnx and lib mqm/mqic |
« View previous topic :: View next topic » |
Author |
Message
|
erg |
Posted: Thu Mar 08, 2007 6:56 pm Post subject: mqconn/mqconnx and lib mqm/mqic |
|
|
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 |
|
 |
jsware |
Posted: Fri Mar 09, 2007 12:21 am Post subject: Re: mqconn/mqconnx and lib mqm/mqic |
|
|
 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 |
|
 |
jefflowrey |
Posted: Fri Mar 09, 2007 4:32 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|