Results 1 to 2 of 2

Thread: Global Tracing using AOP

  1. #1
    Join Date
    Sep 2004
    Location
    London
    Posts
    311

    Default 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. #2
    Join Date
    Sep 2004
    Location
    London
    Posts
    311

    Default

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

    regards
    marco

Similar Threads

  1. Global tracing
    By rstearns01 in forum AOP
    Replies: 12
    Last Post: Mar 7th, 2006, 06:48 PM
  2. Global errors
    By montana in forum Web
    Replies: 4
    Last Post: Jan 22nd, 2006, 04:29 AM
  3. Replies: 2
    Last Post: May 15th, 2005, 11:27 PM
  4. Where to place global configuration settings?
    By vmarcinko in forum Container
    Replies: 5
    Last Post: Dec 31st, 2004, 05:11 PM
  5. Replies: 2
    Last Post: Oct 8th, 2004, 04:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •