Thanks Howard! It works beautifully! Just a note: I couldn't add this functionality directly to the dispatcher. I've added it to the DAO instead. BTW, this is not a bad practice at all.
Thank you! On Mon, Feb 2, 2009 at 1:12 PM, Howard Lewis Ship <hls...@gmail.com> wrote: > See the documentation: > > http://tapestry.apache.org/tapestry5/tapestry-hibernate/userguide.html > > for how to decorate your service to enable @CommitAfter. > > On Mon, Feb 2, 2009 at 8:06 AM, Massimo Lusetti <mluse...@gmail.com> > wrote: > > On Mon, Feb 2, 2009 at 4:03 PM, Marcelo Lotif <mlotifj...@gmail.com> > wrote: > > > >> But when we try to persist the entity into the DB, it fails because the > >> annotation @CommitAfter has no effect here (I suppose). I tried to start > and > >> commit a transaction manually and it did well, but when > tapestry-hibernate > >> tried to do another query, it fails and gives the following exception: > > > > If that's the case use HibernateSessionManager. > > > > > > -- > > Massimo > > http://meridio.blogspot.com > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > > For additional commands, e-mail: users-h...@tapestry.apache.org > > > > > > > > -- > Howard M. Lewis Ship > > Creator Apache Tapestry and Apache HiveMind > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Atenciosamente, Marcelo Lotif Programador Java e Tapestry FIEC - Federação das Indústrias do Estado do Ceará (85) 3421-5910