3 Replies Latest reply on Mar 20, 2004 4:07 AM by appzworm

    Log4j as a JNDI service

    appzworm

      Hi all,

      1. Is there anyway i can access the log4j service using a jndi name like we do for mail service etc

      2. Also is it possible to configure application-specific logging for individual applications without touching the global conf/log4j.xml file?

      Pls help

      Thanks in advance


        • 1. Re: Log4j as a JNDI service

           

          "appzworm" wrote:

          1. Is there anyway i can access the log4j service using a jndi name like we do for mail service etc


          If you implement a JCA wrapper around the logging service then you will get a connection factory bound to JNDI.

          "appzworm" wrote:

          2. Also is it possible to configure application-specific logging for individual applications without touching the global conf/log4j.xml file?


          You can probably figure out a way if you do #1.


          • 2. Re: Log4j as a JNDI service
            camel

             

            "appzworm" wrote:

            2. Also is it possible to configure application-specific logging for individual applications without touching the global conf/log4j.xml file?


            You can accomplish this by using a separate classloader repository for that app, or in the case of a webapp, configuring it to not use the JBoss classloader by setting the "UseJBossWebLoader" to false in jboss-service.xml for tomcat.

            • 3. Re: Log4j as a JNDI service
              appzworm

              Thanks for the information. I appreciate ur help