Hi Les, It certainly helps. I guess I applied your spring-hibernate sample wrongly. I'm trying to figure out to get out of this error now.
Thanks for the insight. Best regards, On Wed, Aug 27, 2008 at 2:42 AM, Les Hazlewood <[EMAIL PROTECTED]> wrote: > Hi Joshua, > > As I understand it, this is strongly related to how your transaction > boundaries are defined. Hibernate would close the HibernateSession when a > transaction is committed or rolled back (e.g. due to a RuntimeException). > > If a runtime exception is thrown (like the AuthenticationException), but you > catch it before the code that started the transaction exits, the transaction > won't be rolled back. > > Does that help? > > Les > > On Tue, Aug 26, 2008 at 2:35 PM, Joshua Partogi <[EMAIL PROTECTED]>wrote: > >> Dear all >> >> When there is an AuthenticationException occurs, if using Hibernate >> then Hibernate session will be closed. Does anyone know how to handle >> this? So HibernateSession won't be closed when an >> AuthenticationException occur. Please give me insights regarding this. >> >> Best regards, >> >> -- >> Setting a new landmark. >> Blog: http://joshuajava.wordpress.com/ >> Twitter: http://twitter.com/thejavafreak >> > -- Setting a new landmark. Blog: http://joshuajava.wordpress.com/ Twitter: http://twitter.com/thejavafreak
