Author |
Message
|
kalyan.sarkar |
Posted: Thu Mar 06, 2008 7:51 am Post subject: IBM MQ 6.0 and XA transaction in CLIENT TCP/IP Mode |
|
|
Newbie
Joined: 06 Mar 2008 Posts: 3
|
I want to have XA transactions, involving IBM MQ 6.0 and I want to connect to MQ in CLIENT TCP/IP mode.
But I am getting the following exception, whenever I try to get an XAQueueConnection object from an XAQueueConnectionFactory.
Exception in thread "main" javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for '127.0.0.1:NSI'
at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:586)
at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:2110)
at com.ibm.mq.jms.MQConnection.createQMXA(MQConnection.java:1485)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:103)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:60)
at com.ibm.mq.jms.MQXAQueueConnection.<init>(MQXAQueueConnection.java:57)
at com.ibm.mq.jms.MQXAQueueConnectionFactory.createXAQueueConnection(MQXAQueueConnectionFactory.java:74)
at com.mycompany.transaction.Main5.main(Main5.java:73)
Here is my code fragment
Code: |
MQXAQueueConnectionFactory qcf = new MQXAQueueConnectionFactory();
qcf.setQueueManager("NSI");
qcf.setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP);
qcf.setHostName("127.0.0.1");
qcf.setPort(1414);
qcf.setChannel("NSICHL");
XAQueueConnection jmsXAConn = qcf.createXAQueueConnection();
XAQueueSession jmsXASession = jmsXAConn.createXAQueueSession(); |
I can't understand why this happens. Do I need the Extended Transactional Client to have XA transactions while I connect to IBM MQ 6.0 using CLIENT TCP/IP mode? Or is there any other way to do so?
If I use the BINDINGS mode I am able to have XA transactions involving IBM MQ 6.0.
Any ideas?
Thanks and regards,
Kalyan Sarkar |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Mar 06, 2008 7:55 am Post subject: Re: IBM MQ 6.0 and XA transaction in CLIENT TCP/IP Mode |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
kalyan.sarkar wrote: |
Do I need the Extended Transactional Client to have XA transactions while I connect to IBM MQ 6.0 using CLIENT TCP/IP mode? |
YES.
Or use WAS. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kalyan.sarkar |
Posted: Thu Mar 06, 2008 8:02 am Post subject: |
|
|
Newbie
Joined: 06 Mar 2008 Posts: 3
|
Thank you for your kind answer. Can you please tell me whether Extended Transactional Client is available for IBM MQ 6.0?
I am working with IBM MQ 6.0 trial and whenever I try to install Extended Transactional Client 5.3 on top of that it asks to install a patch (CSD03) first. The CSD03 patch for Windows is not available from the IBM downloads section. Even if I install this patch will it work?
Thanks in advance.
Regards,
Kalyan Sarkar |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Mar 06, 2008 8:12 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
It's available for v6, of course.
But not as a trial, afaik. It's a separate licensable component from MQ.
You should talk to your IBM sales rep. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kalyan.sarkar |
Posted: Thu Mar 06, 2008 8:21 am Post subject: |
|
|
Newbie
Joined: 06 Mar 2008 Posts: 3
|
Thank you Jeoff. I am trying to contact the IBM sales guy. |
|
Back to top |
|
 |
|