1 Reply Latest reply on Aug 1, 2002 12:05 PM by stevewink

    XA transactions with MQSeries 5.2

    dyates

      Hi all,

      I've been using a variation on the method described by Peter Callies in the thread "MQSeries/JBoss MDB/3rd Party Messaging" to integrate MQSeries 5.2 with JBoss 2.4.7. So far, so good (except for the NullPointerException which Peter refers to).

      Until now, the underlying JNDI reference to a queue connection factory has used the MQQueueConnectionFactory class. The version of the MQ JMS classes I have (ma88_win.zip) supports XA transactions, so I changed the underlying JNDI reference to MQXAQueueConnectionFactory.

      I am using a very simple Message Driven Bean, which was fine with the non-XA QCF, but with the XA QCF configured, I get the following error when starting JBoss:

      [ERROR,MessageDrivenContainer] Serious error in init:
      javax.jms.JMSException: MQJMS1068: failed to obtain XAResource
      at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:530)
      at com.ibm.mq.jms.MQXAQueueConnection.createXAQueueSession(MQXAQueueConnection.java:96)
      at org.jboss.jms.asf.StdServerSessionPool.init(StdServerSessionPool.java:343)
      [...and loads more...]

      Does anybody have any ideas on this? I've checked the IBM web site and there is no mention of the error code quoted (MQJMS1068).

      Many thanks,

      Dan.