Exception in thread "main" java.lang.UnsatisfiedLinkError: no mqjbnd05
in java.library.path at
java.lang.ClassLoader.loadLibrary(ClassLoader.java:1403) at
java.lang.Runtime.loadLibrary0(Runtime.java:788) at
java.lang.System.loadLibrary(System.java:832) at
com.ibm.mq.MQSESSION.loadLib(MQSESSION.java:818) at
com.ibm.mq.server.MQSESSION$1.run(MQSESSION.java:221) at
java.security.AccessController.doPrivileged(Native Method) at
com.ibm.mq.server.MQSESSION.<clinit>(MQSESSION.java:215) at
com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONServer.java:67) at
com.ibm.mq.MQSESSION.getSession(MQSESSION.java:455) at com.ibm.mq.MQMan-
agedConnectionJ11.<init>(MQManagedConnectionJ11.java:155) at com.ibm.mq-
MQBindingsManagedConnectionFactoryJ11._createManagedConnection(MQBindi-
ngsManagedConnectionFactoryJ11.java:153) at com.ibm.mq.MQBindingsManage-
dConnectionFactoryJ11.createManagedConnection(MQBindingsManagedConnecti-
onFactoryJ11.java:189) at com.ibm.mq.StoredManagedConnection.<init>(Sto-
redManagedConnection.java:80) at com.ibm.mq.MQSimpleConnectionManager.a-
llocateConnection(MQSimpleConnectionManager.java:171) at com.ibm.mq.MQQ-
ueueManager.obtainBaseMQQueueManager(MQQueueManager.java:737) at
com.ibm.mq.MQQueueManager.construct(MQQueueManager.java:671) at
com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:452) at
com.ibm.mq.MQSPIQueueManager.<init>(MQSPIQueueManager.java:52) at
com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:1652) at
com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:1132) at
com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:170) at
com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:80) at
com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueCo-
nnectionFactory.java:145) at ASFClient1.main(ASFClient1.java:81)
Any idea??? Thanks in advance. Pepe-
--
posted via MFF : http://www.MainFrameForum.com - USENET Gateway
How are you connecting to the queue manager?
You can only connect in binding mode if your Java code is running on the
same box as the queue manager. If so, see page 12 of the latest WMQ
Using Java manual. You are probably missing the environment variable:
LD_LIBRARY_PATH=/opt/mqm/java/lib
When connecting in client mode you MUST specify the following 3
fields:MQEnvironment.hostname = "server_hostname"; MQEnvironment.channel
= "SYSTEM.DEF.SVRCONN"; MQEnvironment.port = 1414;
If all else fails, RTFM. In particular, chapter 2 of WMQ Using Java.
later Roger...
PS: I'm using Linux as Client and want to connect it to a win2000 with
MQSeries Server 5.1. All using JMS API
thanks
Also, did you have an older version of WMQ previously installed
on the box?
later Roger...
No I don't have a previous version in Linux, but I'm trying to connect
MQClient 5.3 to MQSeries 5.1 may there reside the F. problem.
thanks.
PS:I'm RTFM again...
setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP); // Client mode
the sample run without problems, seems that as default the transport
type was JMSC.MQJMS_TP_BINDINGS_MQ // Bindings mode
I found this solution in page 193 of the F.M. ;)
thank Roger for your support. Greetings. Pepe-