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 Java / JMS » Establishing connection to Queue Manager in Solaris

Post new topic  Reply to topic
 Establishing connection to Queue Manager in Solaris « View previous topic :: View next topic » 
Author Message
crojas
PostPosted: Wed Jan 14, 2004 11:52 am    Post subject: Establishing connection to Queue Manager in Solaris Reply with quote

Apprentice

Joined: 10 Mar 2002
Posts: 28

I'm trying to establish a connection to a Queuemanager in Solaris enviroment. I tested my application on a Windows system successfully.

But in Solaris i get the next error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no mqjbnd05 in java.library.path

My CLASSPATH is:
CLASSPATH=/opt/mqm/java/lib/com.ibm.mq.jar:$CLASSPATH
CLASSPATH=/opt/mqm/java/lib:$CLASSPATH

As the same it was on the Windows Enviroment.

i checked the documentation and i think everything is right. I'm trying to connect in bindings mode connection.
I read some topics and i also add the next variable with no success:

LD_LIBRARY_PATH=/opt/mqm/java/lib
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Wed Jan 14, 2004 12:30 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Here is how I have LD_LIBRARY_PATH and CLASSPATH set:
Code:
LD_LIBRARY_PATH=/opt/mqm/java/lib:$LD_LIBRARY_PATH
#
CLASSPATH=.:/opt/mqm/java/lib/com.ibm.mq.jar:/opt/mqm/java/lib/com.ibm.mqbind.jar:/opt/mqm/java/lib/connector.jar:/opt/mqm/java/lib:$CLASSPATH
#
export LD_LIBRARY_PATH CLASSPATH

This works fine for my Java apps running in bindings mode.

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
crojas
PostPosted: Wed Jan 14, 2004 1:18 pm    Post subject: Reply with quote

Apprentice

Joined: 10 Mar 2002
Posts: 28

It worked.

The problem was the LD_LIBRARY_PATH, it needed the export command. Some process outside mi shell needed the variable.

Does anyone know what happened?
Back to top
View user's profile Send private message
skn
PostPosted: Thu Jan 15, 2004 9:56 am    Post subject: Reply with quote

Centurion

Joined: 21 May 2003
Posts: 112
Location: Dallas

just setting a variable is reflected within the scope of the shell instance.
When you set the path and execute the program the variable you set is not available to the component that runs the program(jre) ,once you do an export that variable becomes environment variable of the kernel and is available to any child processes.
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 Java / JMS » Establishing connection to Queue Manager in Solaris
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.