Announcement Announcement Module
Collapse
No announcement yet.
AOP Proxying not applied correctly Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • AOP Proxying not applied correctly

    Hi,

    I have several aspects with following two pointcuts in my Spring configuration:
    1. execution(* com.mycompany.myproduct.core.*Manager.*(..)) and not @annotation(org.springframework.transaction.annota tion.Transactional)
    2. @annotation(authorized)

    And I also have <tx:annotation-driven ... />.

    Everything seems to work fine, but sometimes the first pointcut is not applied. For example, I get a very weird behavior that if I add a single dependency from one of my beans to another bean (two specific beans, not all of them) using @Resource annotation, it causes some of the "Manager" classes not being proxied at all.

    Is this some kind of bug in the framework that I'm not aware of, or I'm doing something wrong?

  • #2
    Hello

    For example, I get a very weird behavior that if I add a single dependency from one of my beans to another bean (two specific beans, not all of them) using @Resource annotation, it causes some of the "Manager" classes not being proxied at all.
    What is exactly the weird behavior, some error appear?

    Post your Java code to have a better idea

    use code tags

    Comment

    Working...
    X