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

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.21
    • Component/s: Java Broker
    • Labels:
      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.

        Activity

          People

          • Assignee:
            Alex Rudyy
            Reporter:
            Robbie Gemmell
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development