I have included a custom MethodInterceptor and CustomTraceInterceptor in my servlet.xml. The custom MethodInterceptor extends the MethodInterceptor.
The custom MethodInterceptor is working fine but the CustomTraceInterceptor does not. I am not sure what is missing.
My configuration is as follows:
<bean id="customTraceInterceptor" class="org.springframework.aop.interceptor.Customi zableTraceInterceptor">
<property name="useDynamicLogger" value="true" />
</bean>
<bean id="customInterceptor" class="base.aop.interceptor.CustomMethodIntercepto r"></bean>
<bean id="txProxyTemplate_JDBC" abstract="true" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
<property name="transactionManager"><ref bean="jdbcTransactionManager"/></property>
<property name="transactionAttributes">
<props>
<prop key="*">PROPAGATION_REQUIRED</prop>
</props>
</property>
</bean>
<bean id="bizManagerTarget" parent="txProxyTemplate_JDBC">
<property name="target">
<bean class="service.impl.BizManagerImpl">
<property name="bizDAO"><ref bean="bizDAO"/></property>
</bean>
</property>
<property name="transactionAttributes">
<props>
<prop key="*">PROPAGATION_REQUIRED</prop>
</props>
</property>
</bean>
<bean id="bizManager" class="org.springframework.aop.framework.ProxyFact oryBean">
<property name="proxyInterfaces">
<value>service.BizManager</value>
</property>
<property name="target">
<ref local="bizManagerTarget"/>
</property>
<property name="interceptorNames">
<list>
<value>customInterceptor</value>
<value>customTraceInterceptor</value>
</list>
</property>
</bean>


Reply With Quote