If you're doing any async work (or anything related to the thread pool) you should use the Hybrid scope manager.
On Mon, Mar 1, 2010 at 10:44 AM, Makubex <[email protected]> wrote: > Hi > > I am using NHibernateFacility. I am running threads in my service code > right now. I found out that when the threads are trying to use > ISessionManager.OpenSession() it is giving me a "WebSessionStore: > Could not obtain reference to HttpContext" error. > > This is a web app, so i have the isWeb attribute of the > nhibernateFactility set to true. I do realize that if i make this > false, ISessionManager.OpenSession will work correctly, but any other > lazy load will blow up. > > Is it true that in a thread NHibernateFacility does not retain the > HttpContext? If so, how do i manually assign the HttpContext of a > ISessionManager in a thread? > > -- > You received this message because you are subscribed to the Google Groups > "Castle Project Users" 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/castle-project-users?hl=en. > > -- Cheers, hammett http://hammett.castleproject.org/ -- You received this message because you are subscribed to the Google Groups "Castle Project Users" 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/castle-project-users?hl=en.
