Announcement Announcement Module
Collapse
No announcement yet.
Global Tracing using AOP Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Global Tracing using AOP

    hello all,
    i have written an interceptor that should be applied to all methods of all bean defined in my applicationContext.xml.

    <bean id="jdkBeanNameProxyCreator"
    class="org.springframework.aop.framework.autoproxy .BeanNameAutoProxyCreator">
    <property name="beanNames">
    <value>*Action*</value>
    </property>
    <property name="interceptorNames">
    <value>tracingAdvisor</value>
    </property>
    </bean>


    <bean id="tracingInterceptor" class="com.myapp.aop.TracingInterceptor"/>


    <bean id="tracingAdvisor"
    class="org.springframework.aop.support.RegexpMetho dPointcutAdvisor">
    <property name="advice">
    <ref local="tracingInterceptor"/>
    </property>
    <property name="pattern">
    <value>.*</value>
    </property>
    </bean>

    anyone can tell me where's the mistake?#

    thanx and regards
    marco

  • #2
    Silly me.... the bean name is the name of bean defined in applicationContext.xml, not the class name
    sorry all

    regards
    marco

    Comment

    Working...
    X