Does @Transactional work on a Wicket Component's methods?
Hi all, We are using the Spring @Transactional annotation on a method of a Wicket Panel, and it does not appear to be doing anything. From some reading around, I had kind of assumed that @Transactional would work in Wicket components, but Im now wondering whether it does. (We've gone through the usual suspects in the app context and everything seems correct there.) Can anyone confirm under what circumstances/pre-conditions @Transactional definitely does/not work? If so, how does the Spring annotation scanner become aware of Wicket components? And how could it substitute a CGlib-modified dynamic subclass with AOP hooks installed, when the Panel is instantiated with a 'new' operator? Regards Ben -- *Ben Hutchison Senior Developer * Level 2 476 St Kilda Road Melbourne VIC 3004 T 613 8807 5252 | F 613 8807 5203 | M 0423 879 534 | www.ibsglobalweb.com http://www.ibsglobalweb.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Does @Transactional work on a Wicket Component's methods?
You'll need the AspectJ AOP support for this. Wicket components aren't Spring beans. Martijn On Tue, Jun 16, 2009 at 10:09 AM, Ben Hutchisonb...@ibsglobalweb.com wrote: Hi all, We are using the Spring @Transactional annotation on a method of a Wicket Panel, and it does not appear to be doing anything. From some reading around, I had kind of assumed that @Transactional would work in Wicket components, but Im now wondering whether it does. (We've gone through the usual suspects in the app context and everything seems correct there.) Can anyone confirm under what circumstances/pre-conditions @Transactional definitely does/not work? If so, how does the Spring annotation scanner become aware of Wicket components? And how could it substitute a CGlib-modified dynamic subclass with AOP hooks installed, when the Panel is instantiated with a 'new' operator? Regards Ben -- *Ben Hutchison Senior Developer * Level 2 476 St Kilda Road Melbourne VIC 3004 T 613 8807 5252 | F 613 8807 5203 | M 0423 879 534 | www.ibsglobalweb.com http://www.ibsglobalweb.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Does @Transactional work on a Wicket Component's methods?
consider using salve :-) http://code.google.com/p/salve/ http://code.google.com/p/salve/wiki/WhySalve http://code.google.com/p/salve/wiki/SpringTransactionManager http://code.google.com/p/salve/wiki/AnnotatedTransactionManager Am 16.06.2009 um 10:30 schrieb Martijn Dashorst: You'll need the AspectJ AOP support for this. Wicket components aren't Spring beans. Martijn On Tue, Jun 16, 2009 at 10:09 AM, Ben Hutchisonb...@ibsglobalweb.com wrote: Hi all, We are using the Spring @Transactional annotation on a method of a Wicket Panel, and it does not appear to be doing anything. From some reading around, I had kind of assumed that @Transactional would work in Wicket components, but Im now wondering whether it does. (We've gone through the usual suspects in the app context and everything seems correct there.) Can anyone confirm under what circumstances/pre-conditions @Transactional definitely does/not work? If so, how does the Spring annotation scanner become aware of Wicket components? And how could it substitute a CGlib-modified dynamic subclass with AOP hooks installed, when the Panel is instantiated with a 'new' operator? Regards Ben -- *Ben Hutchison Senior Developer * Level 2 476 St Kilda Road Melbourne VIC 3004 T 613 8807 5252 | F 613 8807 5203 | M 0423 879 534 | www.ibsglobalweb.com http://www.ibsglobalweb.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org