-
Apr 13th, 2011, 01:24 AM
#1
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?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules