@Fabio, sorry, but sometimes I just don't have a clue what you are talking about :-)
We are loading entities using "select new" or AliasToBeanResultTransformer to get instances of entities from a normal session without performance problems. You can create a "child session" using session.GetSession. But this is not a stateless one, know idea what it is good for. I would never create another transaction for it. Always perform a business operation in exactly one transaction. Think in isolation level serializable when designing transactions. You could probably create a stateless session and pass the connection to it like this: session.GetSessionFactory().OpenStatelessSession(session.Connection) But not sure if it really works. NH 2.1 should actually respect if the transaction had been opened by the calling code and not close it. On 24 Aug., 11:20, ReverseBlade <empe...@gmail.com> wrote: > So no suggestions ? > > On Aug 21, 8:29 pm, Fabio Maulo <fabioma...@gmail.com> wrote: > > > ah... and that is the reason because I'm injecting the ISessionFactory on my > > DAOs/Repository > > > 2009/8/21 Fabio Maulo <fabioma...@gmail.com> > > > > session = UoWstatelesssession != UoW > > > > 2009/8/21 empe...@gmail.com <empe...@gmail.com> > > > >> Hello, > > > >> Is it possible to use nested sessions or transactions ? My concern is > > >> I am using Session per Web Request . But at some execution point I'd > > >> like to switch to IStatelessSession for performance reasons. It is > > >> perfectly fine if I can't access the outer session's data. Is it > > >> doable ? Any suggestions ? > > > > -- > > > 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 -~----------~----~----~----~------~----~------~--~---