/** {@inheritDoc} */ @Override public void setRollbackOnly() throws IllegalStateException, SystemException { tx.setRollbackOnly(); } }
public void setRollbackOnly() throws SystemException { transaction.setRollbackOnly(); }
public void setRollbackOnly() throws IllegalStateException, SystemException { super.setRollbackOnly(); transaction.setRollbackOnly(); }
/** * The <code>setRollbackOnly</code> method calls setRollbackOnly() * on the invocation's transaction and logs any exceptions than may * occur. * * @param tx the transaction * @param t the exception to add problems to (may be {@code null}) */ protected void setRollbackOnly(Transaction tx, final Throwable t) { try { tx.setRollbackOnly(); } catch (Throwable t2) { EjbLogger.ROOT_LOGGER.failedToSetRollbackOnly(t2); if (t != null) { t.addSuppressed(t2); } } }
public void rollback() { // managed transaction, mark rollback-only if not done so already. try { Transaction transaction = getTransaction(); int status = transaction.getStatus(); if (status != Status.STATUS_NO_TRANSACTION && status != Status.STATUS_ROLLEDBACK) { transaction.setRollbackOnly(); } } catch (IllegalStateException e) { throw new ActivitiException("Unexpected IllegalStateException while marking transaction rollback only"); } catch (SystemException e) { throw new ActivitiException("SystemException while marking transaction rollback only"); } }
/** * Marks the transaction for rollback * NOTE: This method will soon be removed, once this timer service * implementation becomes "managed" */ private void setRollbackOnly() { try { Transaction tx = ContextTransactionManager.getInstance().getTransaction(); if (tx != null) { tx.setRollbackOnly(); } } catch (IllegalStateException ise) { EJB3_TIMER_LOGGER.ignoringException(ise); } catch (SystemException se) { EJB3_TIMER_LOGGER.ignoringException(se); } }
public void end(final int flags) throws XAException { if (flags != XAResource.TMFAIL) { return; } final Transaction transaction = this.transaction; try { final int status = transaction.getStatus(); if (status == Status.STATUS_MARKED_ROLLBACK || status == Status.STATUS_ROLLING_BACK || status == Status.STATUS_ROLLEDBACK) { // no harm here return; } } catch (SystemException e) { // can't determine status; fall out } if (! (transaction instanceof ImportedTransaction)) { throw Log.log.notImportedXa(XAException.XAER_NOTA); } try { transaction.setRollbackOnly(); } catch (IllegalStateException e) { throw Log.log.illegalStateXa(XAException.XAER_NOTA, e); } catch (Throwable /* RuntimeException | SystemException */ e) { throw Log.log.resourceManagerErrorXa(XAException.XAER_RMERR, e); } }
@Override public void setRollbackOnly() throws IllegalStateException, SystemException { Transaction tx = threadLocal.get(); if (tx == null) { throw new IllegalStateException("Cannot get Transaction for setRollbackOnly"); } tx.setRollbackOnly(); }
private void setRollbackOnly() { try { BOUND_JTA_TRANSACTIONS.get().setRollbackOnly(); transactionController.setRollbackOnly(); } catch (SystemException e) { LOG.warn("internal JTA transaction manager error", e); } }
public void rollback() { // managed transaction, mark rollback-only if not done so already. try { Transaction transaction = getTransaction(); int status = transaction.getStatus(); if (status != Status.STATUS_NO_TRANSACTION && status != Status.STATUS_ROLLEDBACK) { transaction.setRollbackOnly(); } } catch (Exception e) { throw LOG.exceptionWhileInteractingWithTransaction("setting transaction rollback only", e); } }
public void rollback() { // managed transaction, mark rollback-only if not done so already. try { Transaction transaction = getTransaction(); int status = transaction.getStatus(); if (status != Status.STATUS_NO_TRANSACTION && status != Status.STATUS_ROLLEDBACK) { transaction.setRollbackOnly(); } } catch (Exception e) { throw LOG.exceptionWhileInteractingWithTransaction("setting transaction rollback only", e); } }
private void setRollbackOnly() { try { transaction.setRollbackOnly(); } catch (SystemException se) { log.error("could not set transaction to rollback only", se); } }
private void hosed() { try { Transaction tx = txManager.getTransaction(); tx.setRollbackOnly(); } catch (Exception e) { // ignore - the caller will throw the original RuntimeException // @todo log this } delegate = HOSED_SET; }
/** * {@inheritDoc} */ public void setRollbackOnly() throws IllegalStateException, SystemException { Transaction tx = registry.getTransaction(); if (tx == null) throw new IllegalStateException(); tx.setRollbackOnly(); }
public void setRollbackOnly(Throwable cause) throws Exception { // there is no generic support for setting the rollback cause getTransactionManager().getTransaction().setRollbackOnly(); }
public void setRollbackOnly() throws XAException, SystemException { txbridgeLogger.logger.trace("InboundBridge.setRollbackOnly("+xid+")"); getTransaction().setRollbackOnly(); }
public void setRollbackOnly(Throwable cause) throws Exception { // there is no generic support for setting the rollback cause getTransactionManager().getTransaction().setRollbackOnly(); }
public void setRollbackOnly(Throwable cause) throws Exception { // there is no generic support for setting the rollback cause getTransactionManager().getTransaction().setRollbackOnly(); }
private void setRollbackOnly() { try { BOUND_JTA_TRANSACTIONS.get().setRollbackOnly(); transactionController.setRollbackOnly(); } catch (SystemException e) { LOG.warn("internal JTA transaction manager error", e); } }
/** * @see UserTransactionServer */ public void setRollbackOnly ( String tid ) throws RemoteException, java.lang.IllegalStateException, SystemException { Transaction tx = getTransactionManager().getJtaTransactionWithId(tid); if ( tx != null ) { tx.setRollbackOnly (); } }