Author |
Message
|
varmauppalapati |
Posted: Thu Dec 31, 2009 1:33 am Post subject: Unsatisfied LinkError with BINDING transport type |
|
|
Newbie
Joined: 31 Dec 2009 Posts: 4
|
Hi all,
Environment details are as below.
1) Websphere MQ server 6.0 installed on AIX.
2) Websphere MQclient 6.0 installed on Windows XP 2002.
3) Java Application running from Eclipse on windows platform.
Application code that fails is :-
MQEnvironment.hostname = "aix_hostname";
MQEnvironment.channel = "channel_name";
MQEnvironment.port = port_number;
MQEnvironment.properties.put(MQC.TRANSPORT_PROPERTY, MQC.TRANSPORT_MQSERIES_BINDINGS);
manager = new MQQueueManager("Mgr_name");
Raises an exception as and when queuemanager is initializing as below :-
java.lang.UnsatisfiedLinkError: no mqjbnd05 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at com.ibm.mq.MQSESSION.loadLib(MQSESSION.java:1028)
at com.ibm.mq.server.MQSESSION$1.run(MQSESSION.java:246)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.mq.server.MQSESSION.<clinit>(MQSESSION.java:243)
at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONServer.java:6
at com.ibm.mq.MQSESSION.getSession(MQSESSION.java:508)
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:213)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11._createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:186)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11.createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:225)
at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:84)
at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:173)
at com.ibm.mq.MQQueueManagerFactory.obtainBaseMQQueueManager(MQQueueManagerFactory.java:795)
at com.ibm.mq.MQQueueManagerFactory.procure(MQQueueManagerFactory.java:709)
at com.ibm.mq.MQQueueManagerFactory.constructQueueManager(MQQueueManagerFactory.java:664)
at com.ibm.mq.MQQueueManagerFactory.createQueueManager(MQQueueManagerFactory.java:160)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:475)
at source.MQPing.createMQ(MQPing.java:51)
at source.MessageListTest.main(MessageListTest.java:
Exception in thread "main"
Question :-
Is it possible to initialise the manager with transport type as BINDING from java application running on windows to MQ installed on AIX. If yes, could you please let me know how? I have pointed to all libs available in client installation.
Regards,
Varma |
|
Back to top |
|
 |
Michael Dag |
Posted: Thu Dec 31, 2009 2:30 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
What other values can MQC.TRANSPORT_PROPERTY have?
BINDINGS mode is for connecting to a local queuemanager running on the same machine. So you need the other value relating to client mode connections... _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
varmauppalapati |
Posted: Thu Dec 31, 2009 2:37 am Post subject: |
|
|
Newbie
Joined: 31 Dec 2009 Posts: 4
|
Thank you very much for your reply....!
Other possible options are making a TRANSPORT_MQSERIES_CLIENT. But i need to start a transation from queue manager
qMgr.begin(); and qMgr.commit();
and as per API begin() is only allowed if we use BINDINGS transport type.
Regards,
Varma |
|
Back to top |
|
 |
Michael Dag |
Posted: Thu Dec 31, 2009 2:56 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
you can not do transactional support over a client connection,
that requires the extended transactional client. _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
varmauppalapati |
Posted: Thu Dec 31, 2009 3:08 am Post subject: |
|
|
Newbie
Joined: 31 Dec 2009 Posts: 4
|
Thanks again !!!
I have seen about extended transactional client. Could you please let me know from where do i get this installation.
Regards,
Varma |
|
Back to top |
|
 |
Michael Dag |
Posted: Thu Dec 31, 2009 4:43 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
it's on the WebSphere MQ media for each platform, so for Windows on the WebSphere MQ for Windows Server CD.
beware this extended transactional client requires additional licenses to run. _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
varmauppalapati |
Posted: Sun Jan 03, 2010 10:54 pm Post subject: |
|
|
Newbie
Joined: 31 Dec 2009 Posts: 4
|
Thanks!!!
I have read the documentation saying 2-phase commit possible with MQ and DB2 using MQQueueManager. Following is the code given :-
COM.ibm.db2.jdbc.DB2XADataSource myDataSource =
new COM.ibm.db2.jdbc.DB2XADataSource();
myDataSource.setDatabaseName(dbName);
jdbcConn = qMgr.getJDBCConnection(myDataSource);
will it be possible to have a 2-phase commit if we use extended transactional client. If Yes, Could you please guide me to the location where i can find some documentation regarding extended transactional client.
Regards,
Varma |
|
Back to top |
|
 |
Vitor |
Posted: Mon Jan 04, 2010 6:02 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
varmauppalapati wrote: |
Could you please guide me to the location where i can find some documentation regarding extended transactional client. |
Well the product documentation has a wealth of information!
(If you need guiding to that as well, look at the top of this page)
You could also try (in addition to reading the documentation) reading some of the discussions in this forum about it. You'll find the search facility top right of this page.
If that's insufficient for your needs, I find a tool called "Google" invaluable in these situations. If you can't find that tool, google it.....  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|