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
-~----------~----~----~----~------~----~------~--~---

Reply via email to