Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.

18.6.3. Enable Transaction Recovery


Transaction recovery is disabled by default in JBoss Data Grid. When disabled, the Transaction Manager cannot determine which transactions require manual intervention.
Using XML

Enable transaction recovery using XML configuration as follows:

<transaction useEagerLocking="true" eagerLockSingleNode="true">
    <recovery enabled="true" recoveryInfoCacheName="noRecovery"/>
</transaction>

Copy to Clipboard Toggle word wrap
The recoveryInfoCacheName attribute is optional.
Programmatic Configuration

Alternatively, enable transaction recovery through the fluent configuration API as follows:

Procedure 18.2. Configure Transaction Recovery Programmatically

  1. To enable JBoss Data Grid's Transaction Recovery, call .recovery:
    configuration.fluent().transaction().recovery();
    
    Copy to Clipboard Toggle word wrap
  2. To check Transactions Recovery's status, use the following programmatic configuration:
    boolean isRecoveryEnabled = configuration.isTransactionRecoveryEnabled();
    
    Copy to Clipboard Toggle word wrap
  3. To disable JBoss Data Grid's Transaction recovery, use the following programmatic configuration:
    configuration.fluent().transaction().recovery().disable();
    
    Copy to Clipboard Toggle word wrap
Transaction recovery can be enabled or disabled on a per cache basis. For example, it is possible for a transaction to span one cache with transaction recovery enabled and then another cache with transaction recovery disabled.
Nach oben
Red Hat logoGithubredditYoutubeTwitter

Lernen

Testen, kaufen und verkaufen

Communitys

Über Red Hat Dokumentation

Wir helfen Red Hat Benutzern, mit unseren Produkten und Diensten innovativ zu sein und ihre Ziele zu erreichen – mit Inhalten, denen sie vertrauen können. Entdecken Sie unsere neuesten Updates.

Mehr Inklusion in Open Source

Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.

Über Red Hat

Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.

Theme

© 2025 Red Hat