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");