On 9/20/07, Josh Canfield <[EMAIL PROTECTED]> wrote: > I had to add rollback logic to the HibernateSessionManager, but I didn't add > a close. I haven't seen the exception you are reporting, but I don't know > hibernate well enough to say definitively that this is ok. The session is > marked to close with the transaction commit/rollback, but I didn't see it > get closed when stepping through in the debugger.
Looking at this[1] and googling a bit could help you. Tapestry Hibernate integration is and implementation of the classical "Open Session in View" pattern so the session is typically closed when it's GC but this is very very very dependant on your Hibernate configuration. Search on [1] for "Can I commit the transaction before rendering the view?" and dig through hibernate doc[2]. I agree that Hibernate support needs some work but at least is usable. I was tempted to add try/catch/finally logic to HibernateSessionManagerImpl to do classical commit/rollback/close but resisted since anyway it is called during ThreadCleanup which to me seems to late to do any repair work on the view. [1] http://www.hibernate.org/43.html [2] http://www.hibernate.org/hib_docs/v3/reference/en/html/session-configuration.html -- Massimo http://meridio.blogspot.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]