atomikos 事务的一些问题

xiaoxiao2026-05-23  14

最近下载了AtomikosTransactionsEssentials-3.5.4使用,发现如下问题 [*]发布包和代码不一致 调试时发现dist目录下jar发布包与sources目录的代码行对应不起来,不知是出于什么原因,是他们搞错了还是故意的,还是用了特殊的编译方法 [*] timeout无效 com.atomikos.icatch.default_jta_timeout 设置了较大值,一分钟不到竟然提示timeout,(多处设置了TimeOut 包括J2eeUserTransaction.setTransactionTimeout J2eeTransactionManager.setTransactionTimeout以及spring使用事务时@Transactional(timeout=30000) [*] 日志级别无效 com.atomikos.icatch.console_log_level = WARN 竟然没起作用,一堆INFO信息打印出来,发现 public void println ( String string , int level ) throws IOException { switch ( level ) { case Console.WARN: log.warn ( string ); break; case Console.INFO: log.info ( string ); break; case Console.DEBUG: log.debug ( string ); break; default: break; } } 对level未做处理 做如下修改就修正日志级别了问题 public void println ( String string , int level ) throws IOException { if(this.level >= level) { switch ( level ) { case Console.WARN: log.warn ( string ); break; case Console.INFO: log.info ( string ); break; case Console.DEBUG: log.debug ( string ); break; default: break; } } }
转载请注明原文地址: https://www.6miu.com/read-5049265.html

最新回复(0)