此内容没有您所选择的语言版本。

Chapter 7. JBoss Messaging XA Recovery Configuration


This section describes how to configure JBoss Transactions to handle XA recovery for JBoss Messaging resources in JBoss Enterprise Application Platform.
The JBoss Transactions Recovery Manager can be configured to continually poll for and recover JBoss Messaging XA resources. This provides a high level of transaction durability.
To enable JBoss Transactions Recovery Manager, add a line to $JBOSS_HOME/server/$PROFILE/conf/jbossts-properties.xml. The following code snippet includes the line required:
<properties depends="arjuna" name="jta">
  <!--
  Support subtransactions in the JTA layer?
  Default is NO.
  -->
  <property name="com.arjuna.ats.jta.supportSubtransactions" value="NO"/>
  <property name="com.arjuna.ats.jta.jtaTMImplementation"
      value="com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionManagerImple"/>
  <property name="com.arjuna.ats.jta.jtaUTImplementation"
      value="com.arjuna.ats.internal.jta.transaction.arjunacore.UserTransactionImple"/>      
  <!--
      *** Add this line to enable recovery for JMS resources using DefaultJMSProvider ***
  -->
  <property name="com.arjuna.ats.jta.recovery.XAResourceRecovery.JBMESSAGING1"
      value="org.jboss.jms.server.recovery.MessagingXAResourceRecovery;java:/DefaultJMSProvider"/>

</properties>
Here, the Recovery Manager attempts to recover JMS resources via the JMS Provider Loader, DefaultJMSProvider.
DefaultJMSProvider ships with JBoss Enterprise Application Platform. It is defined in $JBOSS_HOME/server/$PROFILE/conf/jms-ds.xml (or, in a clustered environment, hajndi-jms-ds.xml). To perform recovery with a different JMS provider loader (for example, one that corresponds with a remote JMS Provider), add another line to the properties file and specify your remote provider instead of DefaultJMSProvider. Your provider's name should be listed in its managed bean configuration file.
Each provider requires a unique name, for example, com.arjuna.ats.jta.recovery.XAResourceRecovery.JBMESSAGING1, com.arjuna.ats.jta.recovery.XAResourceRecovery.JBMESSAGING2, etc.
Recovery should work with any JMS provider that implements recoverable XAResources (that is, it properly implements XAResource.recover()).
For the Recovery Manager to recover from any node of the cluster, you must add a line in hajndi-jms-ds.xml for every node of the cluster.
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部