On Fri, Apr 24, 2009 at 9:07 AM, Andreas Petersson <[email protected]> wrote: > 1) be able to use AOP on components (guice). for example use @Transactional > on onClick method to tightly specify transaction boundaries.
I wouldn't recommend that. Putting transactional boundaries on user interface methods is not a good idea, IMHO. If the "stuff" logically belongs in a transaction, then it should be part of the "domain" model. The UI would then use the domain model to get to the logic. This would also make it much easier to unit test the logic. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
