7 Replies Latest reply on Oct 31, 2016 4:45 AM by tomjenkinson

    How to use compensating API implements a xa dasource?

    kylin

      We have developed a MongoDBManagedConnectionFactory, which add Ra to WildFly via CLI

      /subsystem=resource-adapters/resource-adapter=mongodbQS:add(module=org.jboss.teiid.resource-adapter.mongodb)
      /subsystem=resource-adapters/resource-adapter=mongodbQS/connection-definitions=mongodbDS:add(jndi-name=java:/mongoDS, class-name=org.teiid.resource.adapter.mongodb.MongoDBManagedConnectionFactory, enabled=true, use-java-context=true)
      /subsystem=resource-adapters/resource-adapter=mongodbQS/connection-definitions=mongodbDS/config-properties=RemoteServerList:add(value=${mongodb.serverlist})
      /subsystem=resource-adapters/resource-adapter=mongodbQS/connection-definitions=mongodbDS/config-properties=Database:add(value=${mongodb.dbname})
      /subsystem=resource-adapters/resource-adapter=mongodbQS:activate
      

      then get ConnectionFactory via jndi. But the above implementation not support XA requirement, I am in wonder,  whether can we use compensating API to enhance ManagedConnectionFactory implmentation that let mongo data source to satisfy XA requirement? Can we use compensating API to implement?