我是 EJB @Jboss WildFly 的新手。我遵循了一些教程,一切似乎都有效。尽管我定期收到以下调试消息:
Send recover request for transaction origin node identifier 1 to EJB receiver with node name [compuntername]
我应该关心这个吗?
谢谢。
最佳答案
The XARecoveryModule will use the XAResourceRecovery implementation to get a XAResource to the target datasource. On each invocation of periodicWorkSecondPass, the recovery module will issue an XAResource.recover request – this will (as described in the XA specification) return a list of the transaction identifiers (Xid’s) that are known to the datasource and are in an indeterminate (in-doubt) state. The list of these in-doubt Xid’s received on successive passes (i.e. periodicWorkSecondPass-es) is compared. Any Xid that appears in both lists, and for which no JTA ResourceRecord was found by the intervening transaction-initiated recovery is assumed to belong to a transaction that was involved in a crash before any JTA ResourceRecord was written, and a rollback is issued for that transaction on the XAResource.
简而言之,生成此消息是为了在任何情况(数据库连接、网络连接、服务器过载等)发生故障时进行事务恢复。如果您时不时地发生这种情况,那么您应该检查到底是什么原因导致的,并采取适当的措施。如果这种情况只是偶尔出现一次,则无需担心。
更多详情可查看here .
关于java - 我需要担心此 JBoss Wildfly EJB 调试消息吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36790365/