hibernate - Trouble using the Transactional annotation in groovy -


has had experience spring transactions (class-level, proxy, annotation-driven) not getting started in groovy class? i've been struggling unexplained lazyinitialization exception noticed stacktrace not include call start transaction. sounds crazy have wonder whether groovy picks on transactional annotation.

actually found source of problem. spring documentation (i added in emphasis):

24.5.1. aop - advising scripted beans possible use spring aop framework advise scripted beans. spring aop framework unaware bean being advised might scripted bean, of aop use cases , functionality may using or aim use work scripted beans. there 1 (small) thing need aware of when advising scripted beans... cannot use class-based proxies, must use interface-based proxies. of course not limited advising scripted beans... can write aspects in supported dynamic language , use such beans advise other spring beans. advanced use of dynamic language support though.

my problem was using class-based proxies.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -