Announcement Announcement Module
Collapse
No announcement yet.
applying one interceptor to all objects Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • applying one interceptor to all objects

    We are performance testing our application and would like to apply the PerformanceMonitorInterceptor to all classes in the spring application contexts. I used the BeanNameAutoProxyCreator and gave it a beanNames argument of "*". This seems to only apply the advice to the beans local to that specific application context xml file. Our application has many parent context xml files.

    Is there a way I can apply this advice to all the beans in the application without pasting the same BeanNameAutoProxyCreator in each application context xml file? Thanks.

    Karl

  • #2
    BeanNameAutoProxyCreator does not work on beans in a parent context. If you do not necessarilly need parent-child contexts, but just different XML files for keeping things organized, you could have just one context, which is made up from multiple fragments (XML files).

    Regards,

    Comment


    • #3
      Understanded

      Comment

      Working...
      X