JBoss spamming XA Recovery warnings

一笑奈何 提交于 2019-12-04 09:04:15

Had the same problem.

How did I solve it? Using the distributed transactions (inserting some data in my case).

My guess, and I say guess because the sqljdbc4.jar source code has not being released and can not tell what really is the issue. Well, my guess is that each time your jboss server starts, your distributed transaction framework checks for transactions to be recovered. These are hold in a table that the first time is empty, so this raise the warning (com.microsoft.sqlserver.jdbc.SQLServerXAResource.DTC_XA_Interface(SQLServerXAResource.java:550) ) because again the xp_sqljdbc_xa_recover stored procedure cannot find anything (I'm guessing again).

So basically, inserted something into the databases using distributed transaction and run again the jboss/tomcat server to get rid of the warning.

I have the same problem, the error keep showing regardless which instance I run as long it point out to the same DBMS. When I run stored procedure "xp_sqljdbc_xa_recover" the issue resolved by itself. As pointed out by Painy James

You either don't have XA enabled in the DTC, or forgot to grant the SqlJDBCXAUser role.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!