Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-1917

XTS*RecoveryManager.getRecoveryManager() can return null if application deployed before XTS starts

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 5.0.0.M5
    • Component/s: XTS
    • Labels:
      None

      Description

      The problem is that there is currently no way of specifying that an application depends on XTS. Therefore it's possible that when the server starts, that the application can be deployed before XTS is started, thus a call to XTSBARecoveryManager.getRecoveryManager() or XTSATRecoveryManager.getRecoveryManager() will return null.

      The workaround is to poll for the RecoveryManager until it is not null.

      The fix is to have the RecoveryManager injected into the application via a Deployment Unit Processor that has a dependency on the XTS service.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                gytis gytis
                Reporter:
                paul.robinson Paul Robinson
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: