What i wanted to say is that this "feature" smells like bad design to me.
On Tue, Nov 4, 2008 at 3:54 PM, Gustavo Ringel <[EMAIL PROTECTED]> wrote: > i don't get your joke, but it is explicitly said in every doc...after an > exception a session is invalid and you shouldn't keep working with that > session > You don't need to reboot nothing nor to restart nothing rollback throw the > session and try again (or fix your bug). > > Gustavo. > > On Tue, Nov 4, 2008 at 3:44 PM, Liviu U <[EMAIL PROTECTED]> wrote: >> >> Doesn't this look messy? Is this a "normal" pattern? It looks like the >> following pattern to me: Does the application raise an error? Hm, >> reboot the computer and it will be ok after .... >> >> On Mon, Nov 3, 2008 at 11:29 PM, Symon Rottem <[EMAIL PROTECTED]> wrote: >> > Yes - if an exception occurs in a Session it must be thrown away. >> > >> > Symon. >> > >> > On Mon, Nov 3, 2008 at 6:09 PM, Berke <[EMAIL PROTECTED]> wrote: >> >> >> >> If an error occurs should I call Rollback transaction and then throw >> >> away the session? Reason I ask is I am seeing the following: >> >> >> >> 1: Create New Session >> >> 2: Begin Transaction >> >> 3: SaveOrUpdate(entity) >> >> 4: Commit Transaction throws an error >> >> 5: I call Rollback transaction >> >> 6: Exception thrown when checking for ZombiedTransactions >> >> >> >> Looks like the connection on the transaction is being nulled out >> >> somewhere. So if I'm inside a transaction do I only call Rollback when >> >> I want to explicitly roll back? >> >> >> > >> > >> > >> > -- >> > Symon Rottem >> > http://blog.symbiotic-development.com >> > >> > > >> > >> >> > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
