smccrory
Jul 13th, 2005, 10:42 AM
Hi all,
I've been happily using JamonPerformanceMonitorInterceptor in Spring 1.1.5, but today I upgraded to Spring 1.2.2 and am no longer seeing JAMon console output, and my intercepted methods are no longer being metered (I use a customized JAMonAdmin.jsp for display).
I notice in the Spring 1.2 changelog that JamonPerformanceMonitorInterceptor was refactored:
Changes in version 1.2 final (13.5.2005)
----------------------------------------
Package org.springframework.aop
* introduced AbstractTraceInterceptor superclass for all trace interceptors, supporting a static or a dynamic logger
* deprecated TraceInterceptor in favor of SimpleTraceInterceptor, which is a subclass of AbstractTraceInterceptor
* reworked PerformanceMonitorInterceptor/JamonPerformanceMonitorInterceptor into subclasses of AbstractTraceInterceptor
* reworked DebugInterceptor into a subclass of SimpleTraceInterceptor
* added CustomizableTraceInterceptor, supporting pattern-based enter and exit messages with placeholders
* all trace interceptors log at Commons Logging's "trace" level now, instead of "info" or "debug"
* moved AopUtils' "getAllInterfaces" and "getAllInterfacesForClass" methods to org.springframework.util.ClassUtils
It didn't look to me that I should do anything differently, but clearly something is awry. What am I missing?
Here's my interceptor declaration:
<bean id="jamonPerformanceMonitorInterceptor" class="org.springframework.aop.interceptor.JamonPerforman ceMonitorInterceptor"/>
And here's my usage:
<!-- (1) Chain badgeService calls into its participating interceptors -->
<bean id="badgeService" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="proxyInterfaces"><value>passport.service.BadgeService</value></property>
<property name="interceptorNames">
<list>
<!-- Performance monitor -->
<idref bean="jamonPerformanceMonitorInterceptor"/>
<!-- Security check -->
<idref bean="badgeServiceSecurity"/>
<!-- Finally, the service implementation -->
<idref local="badgeServiceHibernateInterceptorProxy"/>
</list>
</property>
</bean>
Thanks in advance,
Scott
I've been happily using JamonPerformanceMonitorInterceptor in Spring 1.1.5, but today I upgraded to Spring 1.2.2 and am no longer seeing JAMon console output, and my intercepted methods are no longer being metered (I use a customized JAMonAdmin.jsp for display).
I notice in the Spring 1.2 changelog that JamonPerformanceMonitorInterceptor was refactored:
Changes in version 1.2 final (13.5.2005)
----------------------------------------
Package org.springframework.aop
* introduced AbstractTraceInterceptor superclass for all trace interceptors, supporting a static or a dynamic logger
* deprecated TraceInterceptor in favor of SimpleTraceInterceptor, which is a subclass of AbstractTraceInterceptor
* reworked PerformanceMonitorInterceptor/JamonPerformanceMonitorInterceptor into subclasses of AbstractTraceInterceptor
* reworked DebugInterceptor into a subclass of SimpleTraceInterceptor
* added CustomizableTraceInterceptor, supporting pattern-based enter and exit messages with placeholders
* all trace interceptors log at Commons Logging's "trace" level now, instead of "info" or "debug"
* moved AopUtils' "getAllInterfaces" and "getAllInterfacesForClass" methods to org.springframework.util.ClassUtils
It didn't look to me that I should do anything differently, but clearly something is awry. What am I missing?
Here's my interceptor declaration:
<bean id="jamonPerformanceMonitorInterceptor" class="org.springframework.aop.interceptor.JamonPerforman ceMonitorInterceptor"/>
And here's my usage:
<!-- (1) Chain badgeService calls into its participating interceptors -->
<bean id="badgeService" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="proxyInterfaces"><value>passport.service.BadgeService</value></property>
<property name="interceptorNames">
<list>
<!-- Performance monitor -->
<idref bean="jamonPerformanceMonitorInterceptor"/>
<!-- Security check -->
<idref bean="badgeServiceSecurity"/>
<!-- Finally, the service implementation -->
<idref local="badgeServiceHibernateInterceptorProxy"/>
</list>
</property>
</bean>
Thanks in advance,
Scott