Announcement Announcement Module
Collapse
No announcement yet.
BeanNameAutoProxyCreator configuration and use Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • BeanNameAutoProxyCreator configuration and use

    I am trying to use the BeanNameAutoProxyCreator to apply some interceptors to all beans in a given context.

    However I cannot get it to work. I must be doing something wrong.

    Can someone send me a sample configuration file.

    Also am I correct in assuming that the code using the bean factory will not need to change and can use the bean names it did previously (i.e. when no interceptors were applied).

    Regards
    Vikash

  • #2
    Did you have a look at the reference manual (sect. 5.10: http://www.springframework.org/docs/...#aop-autoproxy). There are a couple of example there).

    And yes you're right, you don't need to change anything, the bean names will stay the same, except for the fact that they're advised now.

    Comment


    • #3
      Found my issue.

      I was using XmlBeanFactory when I should have been using an ApplicationContext.

      Comment

      Working...
      X