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 » Loading WMQ Client .so Libraries

Post new topic  Reply to topic
 Loading WMQ Client .so Libraries « View previous topic :: View next topic » 
Author Message
guogangli
PostPosted: Fri Aug 09, 2013 2:28 pm    Post subject: Loading WMQ Client .so Libraries Reply with quote

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
View user's profile Send private message
RogerLacroix
PostPosted: Fri Aug 09, 2013 3:32 pm    Post subject: Re: Loading WMQ Client .so Libraries Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3253
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
View user's profile Send private message Visit poster's website
guogangli
PostPosted: Fri Aug 16, 2013 10:11 am    Post subject: Reply with quote

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
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 » General Discussion » Loading WMQ Client .so Libraries
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.