/* 返回定义的JDBC事务工厂,并创建事务 */
transaction = (JDBCTransaction)((TransactionFactory)resManager.getResource(transId)).create();
/* 创建SQLExecutor */
sqlExecutor = transaction.getSQLExecutorFactory(connId).create();
/* 设置SQLExecutor监听器 */
sqlExecutor.addSQLExecutorListener(new SQLExecutorListener(){
/* 监听器的事件方法,当在执行SQL语句时调用此方法 */
public void executeSQLCommand(SQLExecutorEvent evt) {
logger.debug(evt.getSQL().getSQLString());
}
});