Something may have just clicked. When the application starts it calls OpenSession in the PersistanceFacility.
Because this is registered as PerWebRequest does that mean for each web request this session is then shared using ISession and then that can be passed to the controller and for that actual HTTP request the session can be used and is then destroyed after the HTTP request? On 13 January 2011 22:35, José F. Romaniello <[email protected]> wrote: > This has nothing to do with IoC, an NHibernate ISession is not an > IdbConnection and there is not a one to one relationship. > The same happen to NHibernate ITransaction not the same than > IdbTransaction. > > 2011/1/13 zippy <[email protected]> > >> if the ISession is regsitered as PerWebRequest does that mean a new >> database connection >> > > -- > 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]<castle-project-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/castle-project-users?hl=en. > -- Kind Regards, Jonathan Channon See Me : http://jonathanchannon.com <http://www.jonathanchannon.com> Hear Me : http://twitter.com/jchannon Speak To Me : [email protected] -- 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.
