ok I did the following in the InstanceProvider:

        public object GetInstance(InstanceContext instanceContext,
Message message)
        {
            session = sessionManager.OpenSession();
            Hashtable dependencies = new Hashtable();
            dependencies.Add(NHibernateSessionKey,session);
            container.AddComponentProperties<string, Hashtable>
(NHibernateSessionKey, dependencies);
            return container[serviceType.FullName];
        }

but my service still returns an exception, NHibernate.ISession was not
registered.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to