In general, yes, this is what I meant. I think on_close or after_transaction might be better connection release mode here.
Also, I would personally be more inclined to close the "temp session" manually there in that block. But that part is really just a preference I think. On Mon 13 Feb 2012 02:42:07 PM CST, Łukasz Antoniak wrote: > Thanks Steve for such a descriptive replay. I have played a little > with SessionBuilder and probably solved the issue. Because of great > importance of > AuditProcess#doBeforeTransactionCompletion(SessionImplementor) method, > please verify my commit: > https://github.com/lukasz-antoniak/hibernate-core/commit/e6aaa49dcc847e56368822969939ab213252c31a. > > Tell me if it makes sense from your perspective. > > Regards, > Lukasz -- st...@hibernate.org http://hibernate.org _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev