Results 1 to 3 of 3

Thread: BeanNameAutoProxyCreator configuration and use

  1. #1
    Join Date
    Sep 2004
    Posts
    3

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Amsterdam, Netherlands
    Posts
    450

    Default

    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.

  3. #3
    Join Date
    Sep 2004
    Posts
    3

    Default

    Found my issue.

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

Posting Permissions

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