On Wed, 31 Oct 2007 09:17:52 -0200, Ognen Ivanovski
<[EMAIL PROTECTED]> wrote:
The question is - how to do it? Better yet, how to do it without
boilerplate code all around?
tapestry-ioc allows you to write interceptors on service method calls.
I've already done that: http://tapestry-mine.sourceforge.net/hibertapestry/
Methods with a @Transaction annotation (provided by HiberTapestry) are
invoked inside a transaction. If the method runs without exceptions, the
transaction is commited. Otherwise, the transaction is aborted and the
exception rethrown.
I'm planning to add another features like automatic creation of
ValueEncoders in the near future.
The source is Apache 2-licensed and was not released yet, but I'll do it
soon.
--
Thiago H. de Paula Figueiredo
Desenvolvedor, Instrutor e Consultor de Tecnologia
Eteg Tecnologia da Informação Ltda.
http://www.eteg.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]