throw new HeuristicCompletionException(HeuristicCompletionException.STATE_MIXED, ex); throw new HeuristicCompletionException(HeuristicCompletionException.STATE_ROLLED_BACK, ex);
throw new HeuristicCompletionException(HeuristicCompletionException.STATE_MIXED, ex); throw new HeuristicCompletionException(HeuristicCompletionException.STATE_ROLLED_BACK, ex);
protected void doCommit(DefaultTransactionStatus status) { JtaTransactionObject txObject = (JtaTransactionObject) status.getTransaction(); try { txObject.getUserTransaction().commit(); } catch (RollbackException ex) { throw new UnexpectedRollbackException( "JTA transaction unexpectedly rolled back (maybe due to a timeout)", ex); } catch (HeuristicMixedException ex) { throw new HeuristicCompletionException(HeuristicCompletionException.STATE_MIXED, ex); } catch (HeuristicRollbackException ex) { throw new HeuristicCompletionException(HeuristicCompletionException.STATE_ROLLED_BACK, ex); } catch (SystemException ex) { throw new TransactionSystemException("JTA failure on commit", ex); } }
int transactionState = firstTransactionManagerFailed ? HeuristicCompletionException.STATE_ROLLED_BACK : HeuristicCompletionException.STATE_MIXED; throw new HeuristicCompletionException(transactionState, commitException);
int transactionState = firstTransactionManagerFailed ? HeuristicCompletionException.STATE_ROLLED_BACK : HeuristicCompletionException.STATE_MIXED; throw new HeuristicCompletionException(transactionState, commitException);
throw new HeuristicCompletionException(HeuristicCompletionException.STATE_MIXED, ex); throw new HeuristicCompletionException(HeuristicCompletionException.STATE_ROLLED_BACK, ex);
throw new HeuristicCompletionException(HeuristicCompletionException.STATE_MIXED, ex); throw new HeuristicCompletionException(HeuristicCompletionException.STATE_ROLLED_BACK, ex);
int transactionState = firstTransactionManagerFailed ? HeuristicCompletionException.STATE_ROLLED_BACK : HeuristicCompletionException.STATE_MIXED; throw new HeuristicCompletionException(transactionState, commitException);