Win a copy of Practical SVG this week in the HTML/CSS/JavaScript 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.
 
Poop goes in a willow feeder. Wipe with this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!