committed = commitMarkableResourceRecoveryModule.wasCommitted(commitMarkableJndiName, xid);
committed = commitMarkableResourceRecoveryModule.wasCommitted(commitMarkableJndiName, xid);
committed = commitMarkableResourceRecoveryModule.wasCommitted(commitMarkableJndiName, xid);
committed = commitMarkableResourceRecoveryModule.wasCommitted(commitMarkableJndiName, xid);
committed = commitMarkableResourceRecoveryModule.wasCommitted( commitMarkableJndiName, xid); } catch (ObjectStoreException e) {
assertTrue(recoveryModule.wasCommitted("commitmarkableresource", committed)); recoveryModule.periodicWorkSecondPass(); assertFalse(recoveryModule.wasCommitted("commitmarkableresource", committed));
assertFalse(recoveryModule.wasCommitted("commitmarkableresource", committed));
assertTrue(commitMarkableResourceRecoveryModule.wasCommitted( "commitmarkableresource", committed)); commitMarkableResourceRecoveryModule.periodicWorkSecondPass(); assertTrue(commitMarkableResourceRecoveryModule.wasCommitted( "commitmarkableresource", committed)); manager.scan(); assertFalse(commitMarkableResourceRecoveryModule.wasCommitted( "commitmarkableresource", committed));
assertTrue(recoveryModule.wasCommitted("commitmarkableresource", committed)); recoveryModule.periodicWorkSecondPass(); assertTrue(recoveryModule.wasCommitted("commitmarkableresource", committed)); recoveryModule.periodicWorkFirstPass(); recoveryModule.periodicWorkSecondPass(); assertFalse(recoveryModule.wasCommitted("commitmarkableresource", committed));
assertTrue(recoveryModule.wasCommitted("commitmarkableresource", committed)); assertTrue(recoveryModule.wasCommitted("commitmarkableresource", committed)); recoveryModule.periodicWorkFirstPass(); assertTrue(recoveryModule.wasCommitted("commitmarkableresource", committed)); assertFalse(recoveryModule.wasCommitted("commitmarkableresource", committed));
protected void checkCMRRecovery(final DataSource dataSource) throws NamingException, ObjectStoreException { // This is test code, it allows us to verify that the // correct XID was // removed Xid committed = nonXAResource.getStartedXid(); assertNotNull(committed); // The recovery module has to perform lookups new InitialContext().rebind("commitmarkableresource", dataSource); // Now we need to correctly complete the transaction manager.scan(); assertFalse(recoveryModule.wasCommitted("commitmarkableresource", committed)); // Now we need to correctly complete the transaction manager.scan(); assertFalse(xaResource.wasCommitted()); assertTrue(xaResource.wasRolledback()); } }
assertTrue(commitMarkableResourceRecoveryModule.wasCommitted("commitmarkableresource", committed)); assertFalse(commitMarkableResourceRecoveryModule.wasCommitted("commitmarkableresource", committed));
assertFalse(commitMarkableResourceRecoveryModule.wasCommitted("commitmarkableresource", committed)); assertFalse(commitMarkableResourceRecoveryModule.wasCommitted("commitmarkableresource", committed));
assertFalse(recoveryModule.wasCommitted("commitmarkableresource", committed));