public boolean isJtaTrackByThread() { return sessionFactoryOptions.isJtaTrackByThread(); }
@Override public boolean isJtaTrackByThread() { return delegate.isJtaTrackByThread(); }
/** * Construct a JtaTransactionCoordinatorImpl instance. package-protected to ensure access goes through * builder. * * @param owner The transactionCoordinatorOwner * @param autoJoinTransactions Should JTA transactions be auto-joined? Or should we wait for explicit join calls? */ JtaTransactionCoordinatorImpl( TransactionCoordinatorBuilder transactionCoordinatorBuilder, TransactionCoordinatorOwner owner, boolean autoJoinTransactions) { this.transactionCoordinatorBuilder = transactionCoordinatorBuilder; this.transactionCoordinatorOwner = owner; this.autoJoinTransactions = autoJoinTransactions; this.observers = new ArrayList<>(); final JdbcSessionContext jdbcSessionContext = owner.getJdbcSessionOwner().getJdbcSessionContext(); this.jtaPlatform = jdbcSessionContext.getServiceRegistry().getService( JtaPlatform.class ); final SessionFactoryOptions sessionFactoryOptions = jdbcSessionContext.getSessionFactory().getSessionFactoryOptions(); this.preferUserTransactions = sessionFactoryOptions.isPreferUserTransaction(); this.performJtaThreadTracking = sessionFactoryOptions.isJtaTrackByThread(); synchronizationRegistered = false; pulse(); }
@Override public boolean isJtaTrackByThread() { return delegate.isJtaTrackByThread(); }
public boolean isJtaTrackByThread() { return sessionFactoryOptions.isJtaTrackByThread(); }
LOG.debugf( "JTA Track by Thread: %s", enabledDisabled( sessionFactoryOptions.isJtaTrackByThread() ) );
/** * Construct a JtaTransactionCoordinatorImpl instance. package-protected to ensure access goes through * builder. * * @param owner The transactionCoordinatorOwner * @param autoJoinTransactions Should JTA transactions be auto-joined? Or should we wait for explicit join calls? */ JtaTransactionCoordinatorImpl( TransactionCoordinatorBuilder transactionCoordinatorBuilder, TransactionCoordinatorOwner owner, boolean autoJoinTransactions) { this.transactionCoordinatorBuilder = transactionCoordinatorBuilder; this.transactionCoordinatorOwner = owner; this.autoJoinTransactions = autoJoinTransactions; this.observers = new ArrayList<>(); final JdbcSessionContext jdbcSessionContext = owner.getJdbcSessionOwner().getJdbcSessionContext(); this.jtaPlatform = jdbcSessionContext.getServiceRegistry().getService( JtaPlatform.class ); final SessionFactoryOptions sessionFactoryOptions = jdbcSessionContext.getSessionFactory().getSessionFactoryOptions(); this.preferUserTransactions = sessionFactoryOptions.isPreferUserTransaction(); this.performJtaThreadTracking = sessionFactoryOptions.isJtaTrackByThread(); synchronizationRegistered = false; pulse(); }
LOG.debugf( "JTA Track by Thread: %s", enabledDisabled( sessionFactoryOptions.isJtaTrackByThread() ) );