public void registerInterposedSynchronization(@NotNull final Transaction transaction, @NotNull final Synchronization sync) throws IllegalArgumentException { // this is silly but for some reason they've locked this API up tight try { registerSynchronizationImple.invoke((TransactionImple) transaction, new JTAInterposedSynchronizationImple (sync)); } catch (RuntimeException | Error e) { throw e; } catch (Throwable t) { throw Log.log.unexpectedFailure(t); } }
public void registerInterposedSynchronization(Synchronization synchronization) { if (jtaxLogger.logger.isTraceEnabled()) { jtaxLogger.logger.trace("TransactionSynchronizationRegistryImple.registerInterposedSynchronization - Class: " + synchronization.getClass() + " HashCode: " + synchronization.hashCode() + " toString: " + synchronization); } TransactionImple transactionImple = getTransactionImple(); try { transactionImple.registerSynchronizationImple(new JTAInterposedSynchronizationImple(synchronization)); } catch (RollbackException e) { throw new com.arjuna.ats.jta.exceptions.RollbackException(jtaxLogger.i18NLogger.get_jtax_transaction_jts_syncrollbackexception(), e); } catch (SystemException e) { throw new RuntimeException(jtaxLogger.i18NLogger.get_jtax_transaction_jts_systemexception(), e); } }
public void registerInterposedSynchronization(@NotNull final Transaction transaction, @NotNull final Synchronization sync) throws IllegalArgumentException { // this is silly but for some reason they've locked this API up tight try { registerSynchronizationImple.invoke((TransactionImple) transaction, new JTAInterposedSynchronizationImple (sync)); } catch (RuntimeException | Error e) { throw e; } catch (Throwable t) { throw Log.log.unexpectedFailure(t); } }
public void registerInterposedSynchronization(@NotNull final Transaction transaction, @NotNull final Synchronization sync) throws IllegalArgumentException { // this is silly but for some reason they've locked this API up tight try { registerSynchronizationImple.invoke((TransactionImple) transaction, new JTAInterposedSynchronizationImple (sync)); } catch (RuntimeException | Error e) { throw e; } catch (Throwable t) { throw Log.log.unexpectedFailure(t); } }
/** * @message com.arjuna.ats.internal.jta.transaction.jts.syncrollbackexception * [ccom.arjuna.ats.internal.jta.transaction.jts.syncrollbackexception] * The transaction implementation threw a RollbackException */ public void registerInterposedSynchronization(Synchronization synchronization) { if (jtaLogger.logger.isDebugEnabled()) { jtaLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jta.logging.FacilityCode.FAC_JTA, "TransactionSynchronizationRegistryImple.registerInterposedSynchronization"); } TransactionImple transactionImple = getTransactionImple(); try { transactionImple.registerSynchronizationImple(new JTAInterposedSynchronizationImple(synchronization)); } catch (RollbackException e) { throw new RuntimeException(jtaLogger.loggerI18N.getString("com.arjuna.ats.internal.jta.transaction.jts.syncrollbackexception"), e); } catch (SystemException e) { throw new RuntimeException(jtaLogger.loggerI18N.getString("com.arjuna.ats.internal.jta.transaction.jts.systemexception"), e); } }