1 Reply Latest reply on Aug 27, 2009 11:47 AM by jaikiran pai

    Issue with log4j and mdb

    Torres David Newbie

      Hello, I'm using log4j 1.2.15 and ejb 2.1. I'm deploying an EAR project (with WAR and EJB) in JBOSS AS 5.1.0

      When I test one of the Web App of this project all is working fine and I can see my configured pattern defined as follows:

      13:46:24,843 INFO [STDOUT] MD_ESAM - DEBUG - InitServlet --> Inicializando Nodo DATEX2...
      It seems to be ok!

      I have also tasks configured with Quartz that send messages using JMS API. These messages are received by one MDB, but in this case the logs seem to be different.

      13:47:36,328 INFO [IntegradorBean] Cambios en la publicacion difundidos a los subscriptores PUSH

      In this case, root Looger is loaded instead of my expected loggers and I receive some "hidden" logs of my application so I suppose my log4j.xml is not loaded when MDB is executed.

      In both cases log4j.xml file are within the CLASSPATH.

      Any ideas?

      Thanks in advance,