Package com.arjuna.wscf.tests

Examples of com.arjuna.wscf.tests.DemoXAResource


  {
      javax.transaction.TransactionManager tm = TransactionManagerFactory.transactionManager();
     
      tm.begin();

      tm.getTransaction().enlistResource(new DemoXAResource());
     
      System.out.println("Started: "+tm+"\n");

      tm.commit();
View Full Code Here


     
      tm.begin();

      System.out.println("Started: "+tm.getTransaction()+"\n");

      tm.getTransaction().enlistResource(new DemoXAResource());
      tm.getTransaction().enlistResource(new DemoXAResource());
      tm.getTransaction().registerSynchronization(new JTASynchronization());
     
      javax.transaction.Transaction tx = tm.suspend();
     
      System.out.println("Suspended: "+tx+"\n");
View Full Code Here

  {
      javax.transaction.TransactionManager tm = TransactionManagerFactory.transactionManager();
     
      tm.begin();

      tm.getTransaction().enlistResource(new DemoXAResource());
      tm.getTransaction().registerSynchronization(new JTASynchronization());
      tm.getTransaction().registerSynchronization(new JTASynchronization());
     
      System.out.println("Started: "+tm+"\n");
View Full Code Here

TOP

Related Classes of com.arjuna.wscf.tests.DemoXAResource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.