3 Replies Latest reply on Jul 1, 2003 3:04 AM by frito

    JBoss container call logging

    dedhat

      Hi:

      I want to see JBoss container call sequence when any operation is executed on EJB deployed on it.

      We can enable container call logging by using call-logging element (in container-configuration) in standardjboss.xml file as shown below:

      <container-configuration>
      ......
      <call-logging>true</call-logging>
      ......
      </container-configuration>

      I am using JBoss-3.0.4. I was expecting all the container calls will be logged in server.log file of JBoss. But didn't see any corresponding logs in there. Am I missing anything?

      Any help would be highly aprriciated!

      TIK,

      Atul

        • 1. Re: JBoss container call logging
          frito

          If call-logging is true and LogInterceptor is listed in the beans interceptor chain (bean configuration), it should log out every call to the container with debug level. The log statements start with "InvokeHome:" or "Invoke:".

          Greetings,
          Frito

          • 2. Re: JBoss container call logging
            dedhat

            Frito:

            If call-logging is true and LogInterceptor is listed in the beans interceptor chain (bean configuration), it should log out every call to the container with debug level.
            -------------------------------------
            Call-logging is true and LogInterceptor is listed in the bean interceptor chain in standardjboss.xml file (Standard CMP EntityBean container).

            But I still don't see any log statement starting with "InvokeHome" or "Invoke" in server.log file.

            I tried specifying container setting in beans deployment descriptor (jboss.xml) as follow:
            --------------------

            <enforce-ejb-restrictions>true</enforce-ejb-restrictions>
            <enterprise-beans>

            <ejb-name>Ex1EntityBean</ejb-name>
            <!-- <configuration-name>Standard CMP EntityBean</configuration-name> -->
            <jndi-name>Ex1EntityBean</jndi-name>

            </enterprise-beans>


            <container-configurations>
            <container-configuration>
            <container-name>Standard CMP EntityBean</container-name>
            <call-logging>true</call-logging>
            <commit-option>B</commit-option>
            <container-interceptors>
            org.jboss.ejb.plugins.LogInterceptor
            org.jboss.ejb.plugins.SecurityInterceptor
            org.jboss.ejb.plugins.TxInterceptorCMT
            org.jboss.ejb.plugins.MetricsInterceptor
            org.jboss.ejb.plugins.EntityCreationInterceptor
            org.jboss.ejb.plugins.EntityLockInterceptor
            org.jboss.ejb.plugins.EntityInstanceInterceptor
            org.jboss.ejb.plugins.EntityReentranceInterceptor
            org.jboss.resource.connectionmanager.CachedConnectionInterceptor
            org.jboss.ejb.plugins.EntitySynchronizationInterceptor
            </container-interceptors>
            <container-invoker-conf>
            false
            </container-invoker-conf>
            </container-configuration>
            </container-configurations>




            But still didn't see any logs :-(

            Any clue what could be missing ??

            Thanks,

            Atul

            • 3. Re: JBoss container call logging
              frito

              Works for me with 3.2.1 and session beans (and I can remember other versions ;-) )

              Be sure you are using the configuration where call-logging is enabled. The configuration-name is commented out in the jboss.xml you privided.
              Be sure you are not limiting the log output of the class "org.jboss.ejb.plugins.LogInterceptor". Be sure there is no threshold level set for the appropriate appender limiting the debul level.

              Greetings,
              Frito