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

[Java Broker] add BrokerOptions support to request the Broker not perform log4j logging configuration when it is being run embedded

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.21
    • Broker-J
    • None

    Description

      The broker configures Log4J at startup due to its heritage of running in a standalone VM. We have made the broker easier to run embedded in recent times, but it still always configures Log4J at startup. It was requested that we enable preventing it from doing this so the embedding application can configure things itself.

      Support will be added to the BrokerOptions object to allow requesting the Broker instance not perform log4j logging configuration when it is being run embedded. This will also prevent the brokers LoggingManagement MBean from being initialised, as it is dependant on the logging configuration perfomed by the broker and it also has direct support for managing the Log4j configuration file which may not exist in this case.

      Attachments

        Activity

          People

            orudyy Alex Rudyy
            robbie Robbie Gemmell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: