@Override public boolean isRollbackOnly() { return obtainUOWManager().getRollbackOnly(); }
logger.debug("Rolling back on application exception from transaction callback", ex); uowManager.setRollbackOnly(); logger.debug("Transaction callback has explicitly requested rollback"); uowManager.setRollbackOnly(); TransactionSynchronizationManager.clear(); if (!synchronizations.isEmpty()) { uowManager.registerInterposedSynchronization(new JtaAfterCompletionSynchronization(synchronizations));
boolean existingTx = (uowManager.getUOWStatus() != UOWSynchronizationRegistry.UOW_STATUS_NONE && uowManager.getUOWType() != UOWSynchronizationRegistry.UOW_TYPE_LOCAL_TRANSACTION); try { if (definition.getTimeout() > TransactionDefinition.TIMEOUT_DEFAULT) { uowManager.setUOWTimeout(uowType, definition.getTimeout()); uowManager.runUnderUOW(uowType, joinTx, action); if (debug) { logger.debug("Returned from WebSphere UOW action: type=" + uowType + ", join=" + joinTx);
/** * <P> * RegistryManagedRuntime cannot suspend transactions, but WebSphere * provides an interface to submit work outside of the current tran. * </P> */ public void doNonTransactionalWork(Runnable runnable) throws RuntimeException, UnsupportedOperationException { try { UOWManagerFactory.getUOWManager().runUnderUOW( UOWManager.UOW_TYPE_LOCAL_TRANSACTION, false, new DelegatingUOWAction(runnable)); } catch(UOWActionException e ) { RuntimeException re = new RuntimeException(e.getMessage()); re.initCause(e); throw re; } catch(UOWException e ) { RuntimeException re = new RuntimeException(e.getMessage()); re.initCause(e); throw re; } }
/** * Registers the synchronizations as interposed JTA Synchronization on the UOWManager. */ @Override protected void doRegisterAfterCompletionWithJtaTransaction( JtaTransactionObject txObject, List<TransactionSynchronization> synchronizations) { obtainUOWManager().registerInterposedSynchronization(new JtaAfterCompletionSynchronization(synchronizations)); }
boolean existingTx = (uowManager.getUOWStatus() != UOWSynchronizationRegistry.UOW_STATUS_NONE && uowManager.getUOWType() != UOWSynchronizationRegistry.UOW_TYPE_LOCAL_TRANSACTION); try { if (definition.getTimeout() > TransactionDefinition.TIMEOUT_DEFAULT) { uowManager.setUOWTimeout(uowType, definition.getTimeout()); uowManager.runUnderUOW(uowType, joinTx, action); if (debug) { logger.debug("Returned from WebSphere UOW action: type=" + uowType + ", join=" + joinTx);
/** * <P> * RegistryManagedRuntime cannot suspend transactions, but WebSphere * provides an interface to submit work outside of the current tran. * </P> */ public void doNonTransactionalWork(Runnable runnable) throws RuntimeException, UnsupportedOperationException { try { UOWManagerFactory.getUOWManager().runUnderUOW( UOWManager.UOW_TYPE_LOCAL_TRANSACTION, false, new DelegatingUOWAction(runnable)); } catch(UOWActionException e ) { RuntimeException re = new RuntimeException(e.getMessage()); re.initCause(e); throw re; } catch(UOWException e ) { RuntimeException re = new RuntimeException(e.getMessage()); re.initCause(e); throw re; } }
/** * Registers the synchronizations as interposed JTA Synchronization on the UOWManager. */ @Override protected void doRegisterAfterCompletionWithJtaTransaction( JtaTransactionObject txObject, List<TransactionSynchronization> synchronizations) { obtainUOWManager().registerInterposedSynchronization(new JtaAfterCompletionSynchronization(synchronizations)); }
boolean existingTx = (uowManager.getUOWStatus() != UOWSynchronizationRegistry.UOW_STATUS_NONE && uowManager.getUOWType() != UOWSynchronizationRegistry.UOW_TYPE_LOCAL_TRANSACTION); try { if (definition.getTimeout() > TransactionDefinition.TIMEOUT_DEFAULT) { uowManager.setUOWTimeout(uowType, definition.getTimeout()); uowManager.runUnderUOW(uowType, joinTx, action); if (debug) { logger.debug("Returned from WebSphere UOW action: type=" + uowType + ", join=" + joinTx);
/** * <P> * RegistryManagedRuntime cannot suspend transactions, but WebSphere * provides an interface to submit work outside of the current tran. * </P> */ public void doNonTransactionalWork(Runnable runnable) throws RuntimeException, UnsupportedOperationException { try { UOWManagerFactory.getUOWManager().runUnderUOW( UOWManager.UOW_TYPE_LOCAL_TRANSACTION, false, new DelegatingUOWAction(runnable)); } catch(UOWActionException e ) { RuntimeException re = new RuntimeException(e.getMessage()); re.initCause(e); throw re; } catch(UOWException e ) { RuntimeException re = new RuntimeException(e.getMessage()); re.initCause(e); throw re; } }
logger.debug("Rolling back on application exception from transaction callback", ex); uowManager.setRollbackOnly(); logger.debug("Transaction callback has explicitly requested rollback"); uowManager.setRollbackOnly(); TransactionSynchronizationManager.clear(); if (!synchronizations.isEmpty()) { uowManager.registerInterposedSynchronization(new JtaAfterCompletionSynchronization(synchronizations));
/** * Registers the synchronizations as interposed JTA Synchronization on the UOWManager. */ @Override protected void doRegisterAfterCompletionWithJtaTransaction( JtaTransactionObject txObject, List<TransactionSynchronization> synchronizations) { obtainUOWManager().registerInterposedSynchronization(new JtaAfterCompletionSynchronization(synchronizations)); }
@Override public boolean isRollbackOnly() { return obtainUOWManager().getRollbackOnly(); }
boolean existingTx = (uowManager.getUOWStatus() != UOWSynchronizationRegistry.UOW_STATUS_NONE && uowManager.getUOWType() != UOWSynchronizationRegistry.UOW_TYPE_LOCAL_TRANSACTION); try { if (definition.getTimeout() > TransactionDefinition.TIMEOUT_DEFAULT) { uowManager.setUOWTimeout(uowType, definition.getTimeout()); uowManager.runUnderUOW(uowType, joinTx, action); if (debug) { logger.debug("Returned from WebSphere UOW action: type=" + uowType + ", join=" + joinTx);
/** * <P> * RegistryManagedRuntime cannot suspend transactions, but WebSphere * provides an interface to submit work outside of the current tran. * </P> */ public void doNonTransactionalWork(Runnable runnable) throws RuntimeException, UnsupportedOperationException { try { UOWManagerFactory.getUOWManager().runUnderUOW( UOWManager.UOW_TYPE_LOCAL_TRANSACTION, false, new DelegatingUOWAction(runnable)); } catch(UOWActionException e ) { RuntimeException re = new RuntimeException(e.getMessage()); re.initCause(e); throw re; } catch(UOWException e ) { RuntimeException re = new RuntimeException(e.getMessage()); re.initCause(e); throw re; } }
logger.debug("Rolling back on application exception from transaction callback", ex); uowManager.setRollbackOnly(); logger.debug("Transaction callback has explicitly requested rollback"); uowManager.setRollbackOnly(); TransactionSynchronizationManager.clear(); if (!synchronizations.isEmpty()) { uowManager.registerInterposedSynchronization(new JtaAfterCompletionSynchronization(synchronizations));
/** * Registers the synchronizations as interposed JTA Synchronization on the UOWManager. */ @Override protected void doRegisterAfterCompletionWithJtaTransaction( JtaTransactionObject txObject, List<TransactionSynchronization> synchronizations) { obtainUOWManager().registerInterposedSynchronization(new JtaAfterCompletionSynchronization(synchronizations)); }
@Override public boolean isRollbackOnly() { return obtainUOWManager().getRollbackOnly(); }
logger.debug("Rolling back on application exception from transaction callback", ex); uowManager.setRollbackOnly(); logger.debug("Transaction callback has explicitly requested rollback"); uowManager.setRollbackOnly(); TransactionSynchronizationManager.clear(); if (!synchronizations.isEmpty()) { uowManager.registerInterposedSynchronization(new JtaAfterCompletionSynchronization(synchronizations));
@Override public boolean isRollbackOnly() { return obtainUOWManager().getRollbackOnly(); }