|
From: Chris R. <chr...@gm...> - 2005-06-16 23:15:41
|
Did anyone have any comments the issue I raised in this post: http://forum.springframework.org/viewtopic.php?t=3D6311&highlight=3D The Hibernate documentation recommends closing the Session after a HibernateException is thrown. That was also the recommendation of someone on the Hibernate team: http://forum.hibernate.org/viewtopic.php?p=3D2246627#2246627 However, I noticed that HibernateTransactionManager calls Session.clear() with the intent to reset the Session to a known state so that it can be reused by another transaction. This seems to be at odds with the Hibernate documentation unless the goal was to only reuse a Session when a non-HibernateException was thrown. Does anyone have any comments on how to retry transactions when using OpenSessionInViewFilter? |