Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Transaction demarcation works with TransactionProxy but not AOP

 
Santosh Ramachandrula
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I have a spring configuration in my app that works with TransactionProxyFactoryBean, now I am trying to use AOP instead of Proxy and it does not work. I am getting following error with AOP configuration

What do I need to do in AOP decleration to get this to work?

Working version using TransactionProxyFactoryBean


AOP configuration thats not working.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that you have to declare the pointcut like this :

To tell that you want to apply the advice on any class ending with "Delegate" from any package.
 
Santosh Ramachandrula
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That worked. Thanks Chris.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic