DefaultManagedObject utilises ApplicationRegistry to get ObjectRegistry
-----------------------------------------------------------------------

                 Key: QPID-1228
                 URL: https://issues.apache.org/jira/browse/QPID-1228
             Project: Qpid
          Issue Type: Bug
            Reporter: Martin Ritchie


Summary:
DefaultManagedObject:
    protected ManagedObjectRegistry getManagedObjectRegistry()
    {        
        return ApplicationRegistry.getInstance().getManagedObjectRegistry();
    }

This is incorrect as the default ApplicationRegistry may not be in use.

This is only used by the register() and unregister() methods. These should be 
removed and direct calls to un/registerObject should be made instead as in 
these locations we have access to the virtualhost which should have access to 
the ManagedObjectRegistry.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to