Atomikos Forum

All feedback will be investigated, but priority support, confidential support, and product priority updates are reserved for customers. Interested in becoming a customer? Subscribe here...

Only registered users can post (registration is free). Problems registering? Send an email to support@atomikos.com to get help.


MQJMS1068: failed to obtain XAResource

Hi

I am getting the below error/warning when trying to connect Spring
[WARN,DefaultMessageListenerContainer,jmsContainerAudit-1] Setup of JMS message listener invoker failed for destination 'queue:///QUEUENAME1' - trying to recover. Cause: MQJMS1068: failed to obtain XAResource; nested exception is javax.transaction.xa.XAException: client connection not XA enabled

I am using Atomikos 4.0, and Tomcat Pivotal TC server, and have copied the following MQ jars in tomcat lib.
com.ibm.mq.jar
com.ibm.mq.jmqi.jar
com.ibm.mq.pcf.jar
com.ibm.mqetclient.jar
com.ibm.mqjms.jar

the configuration I've done in context.xml is as follows:
    <Resource name="jms/SampleQueueConnectionFactory" auth="Container"
        type="com.atomikos.jms.AtomikosConnectionFactoryBean" factory="com.atomikos.tomcat.EnhancedTomcatAtomikosBeanFactory"
        uniqueResourceName="MailQueueConnectionFactory"
        xaConnectionFactoryClassName="com.ibm.mq.jms.MQXAQueueConnectionFactory"
        xaProperties.queueManager="QMGR" xaProperties.hostName="host"
        xaProperties.port="22011" xaProperties.channel="CHANNEL" xaProperties.transportType="1"
        minPoolSize="1" />

Any help would be much appreciated.

We are performing a POC with Atomikos as a prospective JTA transaction manager implemetation for a large java based application.
Parthoprotim Mukherjee Send private email
woensdag 5 april 2017
 
 
Can I please have some response to this topic? I've now enabled Logging in TM, and found the below errors.
17-04-05 17:55:30,411 [localhost-startStop-1] Error in recovery
javax.transaction.xa.XAException
    at oracle.jdbc.xa.OracleXAResource.recover(OracleXAResource.java:709)
    at com.atomikos.datasource.xa.XATransactionalResource.recover(XATransactionalResource.java:585)
    at com.atomikos.datasource.xa.XATransactionalResource.endRecovery(XATransactionalResource.java:670)
    at com.atomikos.icatch.imp.TransactionServiceImp.recover(TransactionServiceImp.java:635)
    at com.atomikos.datasource.xa.XATransactionalResource.setRecoveryService(XATransactionalResource.java:503)
    at com.atomikos.icatch.system.Configuration.addResource(Configuration.java:404)
    at com.atomikos.jdbc.AtomikosDataSourceBean.doInit(AtomikosDataSourceBean.java:197)
    at com.atomikos.jdbc.AbstractDataSourceBean.init(AbstractDataSourceBean.java:275)
    at com.atomikos.tomcat.EnhancedTomcatAtomikosBeanFactory.createDataSourceBean(EnhancedTomcatAtomikosBeanFactory.java:141)
    at com.atomikos.tomcat.EnhancedTomcatAtomikosBeanFactory.getObjectInstance(EnhancedTomcatAtomikosBeanFactory.java:56)
    at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:141)
    at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:848)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:159)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:836)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:159)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:836)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:159)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:836)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:173)
    at org.apache.naming.SelectorContext.lookup(SelectorContext.java:156)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:154)
    at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:87)
    at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:152)
    at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178)
    at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:95)
    at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105)
    at org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:201)

I am using Oracle 10g - and it was running all ok with JOTM transaction manager. Do I need any specific change in Oracle DB?
I have followed the https://www.atomikos.com/Documentation/TomcatIntegration and https://www.atomikos.com/Documentation/SpringIntegration
Parthoprotim Mukherjee Send private email
vrijdag 7 april 2017
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz