java - 我需要担心此 JBoss Wildfly EJB 调试消息吗?

标签 java jboss ejb-3.1

我是 EJB @Jboss WildFly 的新手。我遵循了一些教程,一切似乎都有效。尽管我定期收到以下调试消息:

Send recover request for transaction origin node identifier 1 to EJB receiver with node name [compuntername]

我应该关心这个吗?

谢谢。

最佳答案

来自JBoss documentation :

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/

相关文章:

java - 从 servlet 调用 Web 服务导致 ClassCastException

java - A JMS-Queue-Factory-Bean --> 在不同的 bean 中重用注入(inject)的 jms 队列

glassfish - 如何将 session Bean 注入(inject)消息驱动 Bean?

java - 异步方法的默认 EJB 事务模式?

java - jQAssistant 堆问题 - 显式设置 java 版本

java - 带有时区偏移的joda日期时间,插入数据库后将更改为UTC时间

java - 在eclipse中如何在没有java项目的情况下创建类?

Java 以编程方式绕过代理 apache

java - 将 docx 文件转换为 PDF 而不丢失格式?

jms - 如何启动一个长时间运行的 Java EE 作业?