It's not a secret anymore!*
The moose likes Other Application Frameworks and the fly likes Transaction demarcation works with TransactionProxy but not AOP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Transaction demarcation works with TransactionProxy but not AOP" Watch "Transaction demarcation works with TransactionProxy but not AOP" New topic
Author

Transaction demarcation works with TransactionProxy but not AOP

Santosh Ramachandrula
Ranch Hand

Joined: Apr 04, 2004
Posts: 252
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.


Thanks,
Santosh
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

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.

[My Blog]
All roads lead to JavaRanch
Santosh Ramachandrula
Ranch Hand

Joined: Apr 04, 2004
Posts: 252
That worked. Thanks Chris.
 
Consider Paul's rocket mass heater.
 
subject: Transaction demarcation works with TransactionProxy but not AOP