« Home | Paypal Gateway for AppfuseI implemented a paypal g... » | Appfuse and ServletsI needed to use a servlet, in ... » | I spent the better part of this afternoon putting ... » | Ebay and SkypeRecently there have been lots of dev... » | Callback Systems »

AOP and appfuse

I ran into some problems trying to wire up some of the startup paramaters for my managers in applicationContext-service.xml today.

I used to use txProxy as the parent for my declarations, like this:




But in appfuse 1.9.4 references to txProxyTemplate throw not found errors. It turns out that appfuse now uses Spring 2.o and aspectJ(What?). So managers are declared transactional in an aspect oriented way (AOP).ie If their names end in manager and they are in a "service" package, those things are transactional. (Sounds like something from Rocky Horror Picture Show)

Just declare them like this: