2008/11/7 FrederikGheysels <[EMAIL PROTECTED]>

>
> How will it do that then, if I may ask ?
> I mean, suppose I open a session, load an object from the DB and do
> not disconnect the session.
> Then, the object is loaded, the user leaves for lunch for instance,
> He comes back, does some other changes, and wants to persist his work.
> When will NHibernate disconnect the session ?


There is not a 1:1 relation of the NH-Session with the Connection.
How NH manage the connection depend from various things. In general you can
be sure that NH close the connection after a transaction
commit/rollback. Obviously... you must take care about the
transaction-life-cycle.

Does the 'connection.release-mode' configuration value also affects
> this behaviour ?


Leave it as default.

-- 
Fabio Maulo

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