I suggest, if you follow this technique, you load the Server Libs first,
since it is not unusual to install both libraries.






                      John Scott
                      <[EMAIL PROTECTED]        To:       [EMAIL PROTECTED]
                      .CO.UK>                  cc:
                      Sent by: MQSeries        Subject:  Re: A program the uses 
MQSeries Client and Server libraries
                      List
                      <[EMAIL PROTECTED]
                      n.AC.AT>


                      09/30/2003 12:51
                      PM
                      Please respond to
                      MQSeries List






Yes it is possible to do this using the base MQI (MQCONN, MQOPEN, MQPUT
etc.). We do this on both NT, AIX and Solaris platforms.

You need to look at www.mqseries.net and do a search in the software
repository for either "ntloadmq", "sunloadmq" and "slloadmq" (for AIX).
These will give you ideas on how to dynamically load the MQ libraries.

Basically, the extension I did to this was to try and load the mqserver
library first. If that fails, drop down and look for mqclient. If that
fails
it's game over.

Hope this helps.

John Scott
IBM Certified Specialist - MQSeries
Argos Ltd


-----Original Message-----
From: Jeff A Tressler [mailto:[EMAIL PROTECTED]
Sent: 30 September 2003 15:03
To: [EMAIL PROTECTED]
Subject: A program the uses MQSeries Client and Server libraries


We are writing a program that will be able to access either the MQSeries
client or MQSeries server depending on the system it runs on.

My understanding is that the code can be written such that no changes are
needed and the method of connection (Client or Server) depends upon which
set of MQSeries libraries the program links with. This would create two
different executable, one for a MQSeries Client system and another for a
MQSeries Server system

Is there a way to create a single executable which will recognize it is on
a
MQSeries server and perform accordingly and if not, perform as if it were
running on a MQSeries client system?

Instructions for managing your mailing list subscription are provided in
the
Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive


**********************************************************************

Click here to visit the Argos home page http://www.argos.co.uk

The information contained in this message or any of its attachments may be
privileged and confidential, and is intended exclusively for the addressee.
The views expressed may not be official policy, but the personal views of
the originator.
If you are not the intended addressee, any disclosure, reproduction,
distribution, dissemination or use of this communication is not authorised.
If you have received this message in error, please advise the sender by
using your reply facility in your e-mail software.
All messages sent and received by Argos Ltd are monitored for virus, high
risk file extensions, and inappropriate content. As a result users should
be aware that mail maybe accessed.

**********************************************************************

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive





This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase & Co., its
subsidiaries and affiliates.

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Reply via email to