@Override public Vote checkXid(Xid xid) { if(xid.getFormatId() != XATxConverter.FORMAT_ID) { // we only care about Xids created by the JTA return Vote.ABSTAIN; } if(transactionLog(xid)) { // it's owned by a logged transaction which // will recover it top down in due course return Vote.LEAVE_ALONE; } return Vote.ABSTAIN; }
@Override public Vote checkXid(Xid xid) { if(xid.getFormatId() != XATxConverter.FORMAT_ID) { // we only care about Xids created by the JTA return Vote.ABSTAIN; } if(transactionLog(xid)) { // it's owned by a logged transaction which // will recover it top down in due course return Vote.LEAVE_ALONE; } return Vote.ABSTAIN; }
@Override public Vote checkXid(Xid xid) { if(xid.getFormatId() != XATxConverter.FORMAT_ID) { // we only care about Xids created by the JTA return Vote.ABSTAIN; } try { if(transactionLog(xid)) { // it's owned by a logged transaction which // will recover it top down in due course return Vote.LEAVE_ALONE; } } catch (ObjectStoreException | IOException e) { jtaLogger.i18NLogger.warn_could_not_access_object_store(e); // we don't know what the state of the parent transaction is so leave it alone return Vote.LEAVE_ALONE; } return Vote.ABSTAIN; }
@Override public Vote checkXid(Xid xid) { if(xid.getFormatId() != XATxConverter.FORMAT_ID) { // we only care about Xids created by the JTA return Vote.ABSTAIN; } try { if(transactionLog(xid)) { // it's owned by a logged transaction which // will recover it top down in due course return Vote.LEAVE_ALONE; } } catch (ObjectStoreException | IOException e) { jtaLogger.i18NLogger.warn_could_not_access_object_store(e); // we don't know what the state of the parent transaction is so leave it alone return Vote.LEAVE_ALONE; } return Vote.ABSTAIN; }
@Override public Vote checkXid(Xid xid) { if(xid.getFormatId() != XATxConverter.FORMAT_ID) { // we only care about Xids created by the JTA return Vote.ABSTAIN; } try { if(transactionLog(xid)) { // it's owned by a logged transaction which // will recover it top down in due course return Vote.LEAVE_ALONE; } } catch (ObjectStoreException | IOException e) { jtaLogger.i18NLogger.warn_could_not_access_object_store(e); // we don't know what the state of the parent transaction is so leave it alone return Vote.LEAVE_ALONE; } return Vote.ABSTAIN; }
@Override public Vote checkXid(Xid xid) { if(xid.getFormatId() != XATxConverter.FORMAT_ID) { // we only care about Xids created by the JTA return Vote.ABSTAIN; } try { if(transactionLog(xid)) { // it's owned by a logged transaction which // will recover it top down in due course return Vote.LEAVE_ALONE; } } catch (ObjectStoreException | IOException e) { jtaLogger.i18NLogger.warn_could_not_access_object_store(e); // we don't know what the state of the parent transaction is so leave it alone return Vote.LEAVE_ALONE; } return Vote.ABSTAIN; }