log.info("testDo2XATrans");
if (log != null) log.info("testDo2XATrans");
    public void testDo2XATrans() throws Exception {                log.info("testDo2XATrans");        FBManagedConnectionFactory mcf = initMcf();        ManagedConnection mc1 = mcf.createManagedConnection(null, null);        FBManagedConnection fbmc1 = (FBManagedConnection)mc1;        XAResource xa1 = mc1.getXAResource();        Xid xid1 = new XidImpl();        xa1.start(xid1, XAResource.TMNOFLAGS);        if (fbmc1.getIscDBHandle() == null) {            throw new Exception("no db handle after start xid");        }        ManagedConnection mc2 = mcf.createManagedConnection(null, null);        FBManagedConnection fbmc2 = (FBManagedConnection)mc2;        XAResource xa2 = mc2.getXAResource();        Xid xid2 = new XidImpl();        xa2.start(xid2, XAResource.TMNOFLAGS);        if (fbmc2.getIscDBHandle() == null) {            throw new Exception("no db handle after start xid");        }        //commit each tr on other xares        xa1.end(xid1, XAResource.TMNOFLAGS);        xa2.commit(xid1, true);        xa2.end(xid2, XAResource.TMNOFLAGS);        xa1.commit(xid2, true);        mc1.destroy();        mc2.destroy();    }