public boolean isTransactionInProgress(JDBCContext jdbcContext,
Context transactionContext,
Transaction transaction) {
// try {
// // for JDBC-based transactions, we only want to return true
// // here if we (this transaction) are managing the transaction
// return transaction != null &&
// transaction.isActive() &&
// !jdbcContext.getConnectionManager().isAutoCommit();
// }
// catch ( SQLException e ) {
// // assume we are in auto-commit!
// return false;
// }
return transaction != null && transaction.isActive();
}
|