Hi Sal,

I'm doing exactly the same as you with StructureMap and NHibernate (Only
just started).
Obviously, the whole request will be in the context of a transaction and
that's all taken care of. But like you, I also want to control multiple
transactions within my services too. I haven't implemented it yet, but I
intend to either inject the ISession into a wrapper that I can use without
an NH dependency, or just bite the bullet and take an NH dependency.

Stu


On Tue, Jan 6, 2009 at 5:35 PM, Sal <salbass...@hotmail.com> wrote:

>
> OK, but I'm not sure I follow. Where do I put code to explicitly open,
> commit, and rollback (if necessary) transactions that need to be
> wrapped around specific actions?
>
>
> On Jan 6, 12:30 pm, "Fabio Maulo" <fabioma...@gmail.com> wrote:
> > in session-per-request nh-session and the nh-transaction have the same
> > lifecycle of the request the question about transaction management, here,
> is
> > unneeded.
> >
> > 2009/1/6 Sal <salbass...@hotmail.com>
> >
> >
> >
> >
> >
> > > This is the session-per-request pattern, with the session being
> > > injected into my repositories via IoC.
> >
> > > On Jan 6, 12:21 pm, "Fabio Maulo" <fabioma...@gmail.com> wrote:
> > > > 2009/1/6 Sal <salbass...@hotmail.com>
> >
> > > > >  I am taking web in this case.
> >
> > > > Ok.
> > > > Which session-handling pattern are you talking about ?
> >
> > > > --
> > > > Fabio Maulo
> >
> > --
> > Fabio Maulo
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to nhusers@googlegroups.com
To unsubscribe from this group, send email to 
nhusers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to