6 Replies Latest reply on Nov 11, 2002 9:18 AM by Robert Caranica

    log4j from within a bean hangs jboss

    Robert Caranica Newbie


      I have a problem when using log4j from within a stateless session bean: from time to time, unpredictable almost, jboss hangs!

      In the session bean I have the following code:

      private static final Logger log = Logger.getLogger(MySampleBean.class);

      and then further down in a bean's method:

      if (log.isDebugEnabled()) {
      log.debug("MySampleBean: debug");

      However, when calling the remote method of the bean (the one with the log4j debug call) jboss hangs!! JNDI lookup works from the client, but no calls to the bean's methods are executed!!

      That's very strange. We are not allowed to use log4j from within a bean ? What is the explanation ? Is there a workaround ?


      I'm using jboss 3.0.0 final, jdk 1.3.0, Windows NT.