Uploaded image for project: 'HornetQ'
  1. HornetQ
  2. HORNETQ-406

Difficulty in setting the LogDelegate effectively

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 2.1.0.BETA3
    • Fix Version/s: 2.3.0.Final
    • Component/s: Core
    • Labels:
      None

      Description

      When setting up HornetQ through a jboss-beans.xml deployment, the HornetQImpl class gets classloaded, causing a Logger to be assigned, before it loads any hornetq-configuration.xml which might set the logging delegate to something besides JULLogDelegateFactory.

      The workaround/solution is to explicitly set the LogDelegateFactory through Java invokation before loading the jboss-beans.xml that ends up instantiating HornetQ components.

      Logger.setDelegateFactory( new Log4jLogDelegateFactory() );
      deployThoseJBossBeansXml();
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ataylor Andy Taylor
                Reporter:
                bob.mcwhirter Bob McWhirter
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: