Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-3026

The ApplicationRegistry object should be a singleton

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.9
    • 0.11
    • Broker-J
    • None

    Description

      The ApplicationRegistry can currently have multiple instances, in order to cater for multiple brokers in the same VM. However, many parts of the code simply call ApplcationRegistry.getInstance() to obtain a reference, meaning multiple instances are ignored. The only time this is ever useful is for certain types of tests, therefore the capability to have multiple broker instances should be removed.

      Any tests that require multiple brokers can start a VM broker and an external, or two external brokers. In general, test-only code should not be made available to the rest of the application.

      Attachments

        Activity

          People

            robbie Robbie Gemmell
            andrew.kennedy Andrew Kennedy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: