LOGGER.debug("Acquired Connection [" + newCon + "] for JDBC transaction");
conHolder = new ConnectionHolder(newCon);
txObject.setConnectionHolder(conHolder);
txObject.setTxDataSource(dataSource);
} else if (conHolder == null) {
throw new TransactionException("lazy begin must has a connection holder");
}
con = conHolder.getCurrentConnection();
JdbcUtils.prepareConnectionForTransaction(con, definition);
} catch (Exception ex) {
JdbcUtils.releaseConnection(con);
throw new TransactionException("Could not open JDBC Connection for transaction", ex);
}
}