Whoops, that one is in the AR codebase. You may check it for inspiration. On Mon, Mar 1, 2010 at 11:44 AM, Wallace Chan <[email protected]> wrote: > Where can i find some info on the Hybrid scope manager? > > I was thinking i needed some way to store the HttpContext somewhere and then > retrieve it when WebSessionStore finds it null. > I am new to this, how can i make my websessionstore? I guess I am supposed > to extend the class? But how do i tell nhibernate that i have a newly > implemented WebSessionStore? > > On Mon, Mar 1, 2010 at 2:18 PM, hammett <[email protected]> wrote: >> >> 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. >> > > -- > 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.
