1 Reply Latest reply on Dec 3, 2009 8:28 AM by jaikiran

    Logging an EJB jar deployed under JBoss

    ptitjeojeo

      Hello,

      I would like to log operations of my ejb jar deployed under JBoss 4.2.3.
      The classic FileAppender doesn't work and log are written into server.log of JBoss log folder.

      I managed to use FileAppender with org.jboss.logging.filter.TCLFilter in the jboss-log4j.xml. This works but I would like to have the log configuration in my application. Every applications (in my company) have a log4j embedded and loaded by Maven when packaging depending on the chosen profile. Is there a way to use org.jboss.logging.filter.TCLFilter directly in my EJB application ?

      If not, do you know an other way to log in a file with an ejb packaged as jar ?

      Thank a lot for your help.