|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Loading WMQ Client .so Libraries |
« View previous topic :: View next topic » |
Author |
Message
|
guogangli |
Posted: Fri Aug 09, 2013 2:28 pm Post subject: Loading WMQ Client .so Libraries |
|
|
Novice
Joined: 02 Mar 2009 Posts: 15
|
Hi,
We have Java applications that make calls to in-house built C++ shared libraries where WMQ functions are called. The Java applications load WMQ queue manager shared libraries at the run-time, and connect to a local queue manager. Everything works fine.
Now we are trying to switch Java applications from queue manager shared libraries to client shared libraries. The in-house C++ shared libraries are built with WMQ client libraries.
When the Java applications start, they still make MQCONN() to the local queue manager, even though MQSERVER environment variable is pointed to a remote queue manager. MQCONN() ended with 2059 (MQRC_Q_MGR_NOT_AVAILABLE).
How do we force the Java applications to load WMQ client shared libraries, instead of queue manager shared libraries? This is a Solaris server, with the full install of WMQ. Both queue manager and client shared libraries are available in /use/lib.
We will appreciate very much for your help.
Grant Li |
|
Back to top |
|
 |
RogerLacroix |
Posted: Fri Aug 09, 2013 3:32 pm Post subject: Re: Loading WMQ Client .so Libraries |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
guogangli wrote: |
How do we force the Java applications to load WMQ client shared libraries, instead of queue manager shared libraries? This is a Solaris server, with the full install of WMQ. Both queue manager and client shared libraries are available in /use/lib. |
This is a terrible design. You should just be using the Java MQ JAR files for your Java application.
If you want to do this then make sure to link the C++ shared library with the "mqic" (MQ client libraries) and not "mqm" (MQ local/bindings libraries).
Regards,
Roger Lacroix
Capitalware Inc. _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
Back to top |
|
 |
guogangli |
Posted: Fri Aug 16, 2013 10:11 am Post subject: |
|
|
Novice
Joined: 02 Mar 2009 Posts: 15
|
Thanks Roger for your reply.
It turned out the quote in the MQSERVER environment variable caused the problem, because MQSERVER is exported programmatically. We found it in the WMG error file. After the quote is removed, the Java applications can connect to the remote queue manager. |
|
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
|
|
|
|