public static boolean isUncommitted(TransactionManager tm) { try { return isUncommitted(tm.getTransaction()); } catch (SystemException error) { throw new RuntimeException(error); } }
public static boolean isUncommitted(TransactionManager tm) { try { return isUncommitted(tm.getTransaction()); } catch (SystemException error) { throw new RuntimeException(error); } }
public static boolean isUncommitted(UserTransaction ut) { try { int status = ut.getStatus(); return isUncommitted(status); } catch (SystemException error) { throw new RuntimeException(error); } }
public static boolean isUncommitted(UserTransaction ut) { try { int status = ut.getStatus(); return isUncommitted(status); } catch (SystemException error) { throw new RuntimeException(error); } }
public static boolean isUncommitted(Transaction tx) { if (tx == null) return false; try { int status = tx.getStatus(); return isUncommitted(status); } catch (SystemException error) { throw new RuntimeException(error); } }
public static boolean isUncommitted(Transaction tx) { if (tx == null) return false; try { int status = tx.getStatus(); return isUncommitted(status); } catch (SystemException error) { throw new RuntimeException(error); } }
public void delist() throws ResourceException { if (trace) log.trace("delisting " + this); try { if (isTrackByTx() == false && transactionSynchronization != null) { Transaction tx = transactionSynchronization.currentTx; TransactionSynchronization synchronization = transactionSynchronization; transactionSynchronization = null; if (TxUtils.isUncommitted(tx)) { TransactionSynchronizer synchronizer = TransactionSynchronizer.getRegisteredSynchronizer(tx); if (synchronization.enlisted) synchronizer.removeEnlisted(synchronization); if (tx.delistResource(getXAResource(), XAResource.TMSUSPEND) == false) throw new ResourceException("Failure to delist resource: " + this); } } } catch (Throwable t) { JBossResourceException.rethrowAsResourceException("Error in delist!", t); } }