6 Replies Latest reply on Nov 5, 2005 7:25 AM by jaikiran pai

    Combine Log4J of JBoss and JDK-Log of own EJBs

    Per Newgro Newbie

      Hi *,

      my EJBs use JDK-Logging. It's possible to configure it by usage of a propperties file assigned at server start (VMArg).
      JBoss uses Log4J. In the log4j.xml file the location of log folder is set.

      <param name="File" value="${jboss.server.home.dir}/log/server.log"/>


      Now the question: How can my beans log to the folder defined for JBoss Logging? The JDK Switches for location configuration are very limited. Is it possible to achieve this without code-changes in EJBs or exchanging JDK-API by Log4J-API (I don't want to use AOP or something like that)?

      Would be nice if someone could help me.
      Thx. Per