Announcement Announcement Module
Collapse
No announcement yet.
Jamon, WebSphere and log levels Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Jamon, WebSphere and log levels

    Hi,

    I'm trying to get Jamon to work on WebSphere with no luck. Locally I run on Tomcat 5.5, and with the right logging properties set, everything works as it should (jamonadmin.jsp shows statistics from my pointcuts):

    Code:
    org.springframework.aop.interceptor.DebugInterceptor.level=FINEST
    org.springframework.aop.interceptor.PerformanceMonitorInterceptor.level=FINEST
    org.springframework.aop.interceptor.JamonPerformanceMonitorInterceptor.level=FINEST
    My aop-config is as follows:

    Code:
    <!-- 
    Performance monitoring using JAMon
     -->
    <bean id="performanceInterceptor"
       class="org.springframework.aop.interceptor.JamonPerformanceMonitorInterceptor">
    	<property name="useDynamicLogger">
    	      <value>true</value>
    	</property>
    </bean>	
    		
    <aop:config proxy-target-class="true">
         <aop:advisor
    	pointcut="no.obos.fp.aspects.SystemArchitecture.dataAccessOperation()"
                    advice-ref="performanceInterceptor"/>	
    </aop:config>
    And here is my code from SystemArchitecture.java

    Code:
        @Pointcut("no.obos.fp.aspects.SystemArchitecture.loaderExecution() || " +
            "no.obos.fp.aspects.SystemArchitecture.deleterExecution() || ")
        public void dataAccessOperation()
        {
        }
    
    
    
        @Pointcut("no.obos.fp.aspects.SystemArchitecture.storedProcedureInvoker() && execution(* delete*(..))")
        public void deleterExecution()
        {
        }
    
    
        @Pointcut("((no.obos.fp.aspects.SystemArchitecture.storedProcedureInvoker() && execution(* load*(..))) || " +
            "execution (* no.obos..CantorOkonomiStatusLoader.load(..)))")
        public void loaderExecution()
        {
        }
    
        @Pointcut("target(no.obos.fp.dao.AbstractStoredProcedure)")
        public void storedProcedureInvoker()
        {
        }
    Anyway: all this works on Tomcat because setting the log levels (in the first code example above) works fine with commons logging.
    On WebSphere (6.1) I cannot get this to work. I have gone to "Application servers > MyServer > Change Log Detail Levels" in Websphere and added these lines to the config:

    Code:
    org.springframework.aop.interceptor.DebugInterceptor=all:
    org.springframework.aop.interceptor.PerformanceMonitorInterceptor=all:
    org.springframework.aop.interceptor.JamonPerformanceMonitorInterceptor=all
    Does anyone know why nothing is getting logged in jamon (jamonadmin.jsp) when my application is run on WebSphere. Are there some more log levels I have to set?
Working...
X