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

StoreManager.getRecoveryStore() does not return the correct default

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: 5.0.3
    • Fix Version/s: 5.0.4
    • Component/s: Recovery
    • Labels:
      None
    • Estimated Difficulty:
      Low

      Description

      We used to treat requests to get a store with a null name as implicitly meaning get the default named store. But a recent change (JBTM-2207 Make default name null in order for quick lookup) meant that this is no longer the default behaviour. Now a request like the following

      BeanPopulator.getNamedInstance(ObjectStoreEnvironmentBean.class, null);

      will return something other than the default named instance. This is causing a problem on wildfly where the call StoreManager.getRecoveryStore() does not return what was set in the transaction subsystem service initialisation.

      The fix is to explicitly set the name, ie replace calls like

      BeanPopulator.getNamedInstance(ObjectStoreEnvironmentBean.class, null);

      with

      BeanPopulator.getNamedInstance(ObjectStoreEnvironmentBean.class, "default");

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mmusgrov Michael Musgrove
                Reporter:
                mmusgrov Michael Musgrove
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: