如何避免在JBoss中打印此警告消息
我的日志被JBoss7中下面的日志消息搞砸了。你能告诉我如何停止这个日志消息吗如何避免在JBoss中打印此警告消息,jboss,Jboss,我的日志被JBoss7中下面的日志消息搞砸了。你能告诉我如何停止这个日志消息吗 2018-02-28 13:37:13,618 WARN [com.arjuna.ats.arjuna] (default-threads - 48) ARJUNA012141: Multiple last resources have been added to the current transaction. This is transactionally unsafe and should not be re
2018-02-28 13:37:13,618 WARN [com.arjuna.ats.arjuna] (default-threads - 48) ARJUNA012141: Multiple last resources have been added to the current transaction. This is transactionally unsafe and should not be relied upon. Current resource is LastResourceRecord(XAOnePhaseResource(LocalXAResourceImpl@5d70439b[connectionListener=653eac5d connectionManager=7f6856e8 warned=false currentXid=null productName=MySQL productVersion=10.2.13-MariaDB-log jndiName=java:/jdbc/db_jndi]))
在standalone.xml文件的logging部分中,在相应的handler元素下添加如下内容:
<filter>
<not>
<match pattern="ARJUNA012141"/>
</not>
</filter>
当然,您应该使用JBossCLI实用程序添加这些行。您知道对日志记录的更改不需要重新启动服务器,但会在定义的刷新间隔内进行吗