类 SpringJtaSynchronizationAdapter

    • 字段详细资料

    • 构造器详细资料

      • SpringJtaSynchronizationAdapter

        public SpringJtaSynchronizationAdapter​(TransactionSynchronization springSynchronization)
        Create a new SpringJtaSynchronizationAdapter for the given Spring TransactionSynchronization and JTA TransactionManager.
        参数:
        springSynchronization - the Spring TransactionSynchronization to delegate to
      • SpringJtaSynchronizationAdapter

        public SpringJtaSynchronizationAdapter​(TransactionSynchronization springSynchronization,
                                               @Nullable
                                               UserTransaction jtaUserTransaction)
        Create a new SpringJtaSynchronizationAdapter for the given Spring TransactionSynchronization and JTA TransactionManager.

        Note that this adapter will never perform a rollback-only call on WebLogic, since WebLogic Server is known to automatically mark the transaction as rollback-only in case of a beforeCompletion exception. Hence, on WLS, this constructor is equivalent to the single-arg constructor.

        参数:
        springSynchronization - the Spring TransactionSynchronization to delegate to
        jtaUserTransaction - the JTA UserTransaction to use for rollback-only setting in case of an exception thrown in beforeCompletion (can be omitted if the JTA provider itself marks the transaction rollback-only in such a scenario, which is required by the JTA specification as of JTA 1.1).
      • SpringJtaSynchronizationAdapter

        public SpringJtaSynchronizationAdapter​(TransactionSynchronization springSynchronization,
                                               @Nullable
                                               TransactionManager jtaTransactionManager)
        Create a new SpringJtaSynchronizationAdapter for the given Spring TransactionSynchronization and JTA TransactionManager.

        Note that this adapter will never perform a rollback-only call on WebLogic, since WebLogic Server is known to automatically mark the transaction as rollback-only in case of a beforeCompletion exception. Hence, on WLS, this constructor is equivalent to the single-arg constructor.

        参数:
        springSynchronization - the Spring TransactionSynchronization to delegate to
        jtaTransactionManager - the JTA TransactionManager to use for rollback-only setting in case of an exception thrown in beforeCompletion (can be omitted if the JTA provider itself marks the transaction rollback-only in such a scenario, which is required by the JTA specification as of JTA 1.1)