Well... it depend on how much "refined" you want do it.The "problem" of
session-per-conversation, in web, is when your user open two conversation in
two browser-tabs instead two browser-instance.
If you don't care about it you can use
the NHibernate.Context.WebSessionContext
or
uNhAddIns.Web.SessionEasier.Contexts.ExtendedWebSessionContext and its
module
uNhAddIns.Web.NHExtendedSessionWebModule

With a little change, to NHExtendedSessionWebModule, you can "link" the two
"context-key" to each specific use-case; doing it your user can't open
two browser-tabs, with two conversations, for the same use-case.

I'm making some change to Conversation-per-BusinessTransaction even if the
pattern is more useful when 90% of the app need a business-transaction that
span more than one request, or in a rich-client app as WinForm or WPF, or
WCF.

Note that all this implementation are useful when you are injecting the
ISessionFactory to your DAOs/Repository abstracting the session management
from it and giving the power of ISessionFactory to your DAOs/Repository.
If you don't take care about it there are various framework with
session-handling implemented as:
NHibernate.Burrow (available in NHibernate-Contrib)
Rhino.Commons and its UnitOfWork
Castle.NHibernate facility.

2009/1/10 Sal <[email protected]>

>
> This is a noob question to be sure. Let's say that you implement
> session-per-request in your web application and that it covers 95% of
> the app. However, for that remaining 5% you need to implement
> something more like session-per-conversation for some wizard style
> screens. What is the recommened approach for dealing with this type of
> situation. If you already have some automatic session/transaction
> management in place for each request, is there a graceful way to
> augment it when necessary?
>
> >
>


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