Apr 13th, 2011, 01:24 AM
AOP Proxying not applied correctly
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)
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?
Tags for this Thread