﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Lance Cranford commented on Using NHibernate Session Per Request with WCF Windsor Integration</title><description>I'm working on a current design (following this model) for storing Sessions in WCF.  Try storing the session in Extensions property of the OperationContext.  This would be a class that extended IExtensible&lt;OperationContext&gt;.  You can then retrieve this specific extension instance by using OperationContext.Current.Extensions.Find&lt;ExtensionType&gt;().  I'm still working on the design but let me know what you find
</description><link>http://ayende.com/2557/using-nhibernate-session-per-request-with-wcf-windsor-integration#comment15</link><guid>http://ayende.com/2557/using-nhibernate-session-per-request-with-wcf-windsor-integration#comment15</guid><pubDate>Fri, 20 Jul 2007 04:22:49 GMT</pubDate></item><item><title>Ayende Rahien commented on Using NHibernate Session Per Request with WCF Windsor Integration</title><description>not of the top of my head , I don't know WCF enough to tell.
  
</description><link>http://ayende.com/2557/using-nhibernate-session-per-request-with-wcf-windsor-integration#comment14</link><guid>http://ayende.com/2557/using-nhibernate-session-per-request-with-wcf-windsor-integration#comment14</guid><pubDate>Wed, 18 Jul 2007 15:57:47 GMT</pubDate></item><item><title>Jeff Fansler commented on Using NHibernate Session Per Request with WCF Windsor Integration</title><description>I'm glad I'm not nuts.  Do you have any suggestions on how to store the session for the given OperationContext?  Everything about this concept makes sense and works for me, I just don't have a good idea for where to store the session.
  
  
Thanks,
  
Jeff
</description><link>http://ayende.com/2557/using-nhibernate-session-per-request-with-wcf-windsor-integration#comment13</link><guid>http://ayende.com/2557/using-nhibernate-session-per-request-with-wcf-windsor-integration#comment13</guid><pubDate>Wed, 18 Jul 2007 14:10:00 GMT</pubDate></item><item><title>Ayende Rahien commented on Using NHibernate Session Per Request with WCF Windsor Integration</title><description>I just checked, it doesn't exists, very strange. I assumed that something of this nature would exists
</description><link>http://ayende.com/2557/using-nhibernate-session-per-request-with-wcf-windsor-integration#comment12</link><guid>http://ayende.com/2557/using-nhibernate-session-per-request-with-wcf-windsor-integration#comment12</guid><pubDate>Wed, 18 Jul 2007 05:48:32 GMT</pubDate></item><item><title>Jeff Fansler commented on Using NHibernate Session Per Request with WCF Windsor Integration</title><description>Excuse me for what probably should be obvious, but I don't see an Items collection off of the System.ServiceModel.OperationContext object.  What am I missing? 
  
  
http://msdn2.microsoft.com/en-us/library/system.servicemodel.operationcontext_members.aspx
</description><link>http://ayende.com/2557/using-nhibernate-session-per-request-with-wcf-windsor-integration#comment11</link><guid>http://ayende.com/2557/using-nhibernate-session-per-request-with-wcf-windsor-integration#comment11</guid><pubDate>Wed, 18 Jul 2007 02:34:48 GMT</pubDate></item><item><title>Phil Degenhardt commented on Using NHibernate Session Per Request with WCF Windsor Integration</title><description>Thanks. Just for the record I was able to overcome this by creating an IExtension&lt;OperationContext&gt; and disposing the session after the OperationCompleted event.
</description><link>http://ayende.com/2557/using-nhibernate-session-per-request-with-wcf-windsor-integration#comment10</link><guid>http://ayende.com/2557/using-nhibernate-session-per-request-with-wcf-windsor-integration#comment10</guid><pubDate>Fri, 29 Jun 2007 01:27:34 GMT</pubDate></item><item><title>Ayende Rahien commented on Using NHibernate Session Per Request with WCF Windsor Integration</title><description>Load it eagerly?
  
I am sure that the scope of the opened session can be expanded, but I am not to where it should
</description><link>http://ayende.com/2557/using-nhibernate-session-per-request-with-wcf-windsor-integration#comment9</link><guid>http://ayende.com/2557/using-nhibernate-session-per-request-with-wcf-windsor-integration#comment9</guid><pubDate>Mon, 25 Jun 2007 08:08:31 GMT</pubDate></item><item><title>Phil Degenhardt commented on Using NHibernate Session Per Request with WCF Windsor Integration</title><description>Thanks Ayende. This doesn't seem to work if the operation is returning an object with a lazy collection. The session is disposed before WCF serializes it and you get a "Failed to lazily initialize a collection - no session" error. Any ideas?
  
  
</description><link>http://ayende.com/2557/using-nhibernate-session-per-request-with-wcf-windsor-integration#comment8</link><guid>http://ayende.com/2557/using-nhibernate-session-per-request-with-wcf-windsor-integration#comment8</guid><pubDate>Mon, 25 Jun 2007 07:52:56 GMT</pubDate></item><item><title>Ayende Rahien commented on Using NHibernate Session Per Request with WCF Windsor Integration</title><description>Let us take it two steps back.
  
This is a post about infrastructure. If you want to use NHibernate from your WCF service (or call to a controller that uses NH), this shows you how this can be done easily. I am not following the BL vs. UI discussion, I am afraid.
  
</description><link>http://ayende.com/2557/using-nhibernate-session-per-request-with-wcf-windsor-integration#comment7</link><guid>http://ayende.com/2557/using-nhibernate-session-per-request-with-wcf-windsor-integration#comment7</guid><pubDate>Fri, 15 Jun 2007 12:56:07 GMT</pubDate></item><item><title>Diego commented on Using NHibernate Session Per Request with WCF Windsor Integration</title><description>Yes, but what if I want to separate the business logic from the UI.?
  
or what is this example for?
  
</description><link>http://ayende.com/2557/using-nhibernate-session-per-request-with-wcf-windsor-integration#comment6</link><guid>http://ayende.com/2557/using-nhibernate-session-per-request-with-wcf-windsor-integration#comment6</guid><pubDate>Fri, 15 Jun 2007 12:52:16 GMT</pubDate></item><item><title>Ayende Rahien commented on Using NHibernate Session Per Request with WCF Windsor Integration</title><description>I still don't get the problem, you just need to change the connection string, no?
</description><link>http://ayende.com/2557/using-nhibernate-session-per-request-with-wcf-windsor-integration#comment5</link><guid>http://ayende.com/2557/using-nhibernate-session-per-request-with-wcf-windsor-integration#comment5</guid><pubDate>Fri, 15 Jun 2007 12:41:25 GMT</pubDate></item><item><title>Diego commented on Using NHibernate Session Per Request with WCF Windsor Integration</title><description>No, I mean running the IIS and the SqlServer in different machines. So WCF has sense.
  
Thanks again!
</description><link>http://ayende.com/2557/using-nhibernate-session-per-request-with-wcf-windsor-integration#comment4</link><guid>http://ayende.com/2557/using-nhibernate-session-per-request-with-wcf-windsor-integration#comment4</guid><pubDate>Fri, 15 Jun 2007 12:36:34 GMT</pubDate></item><item><title>Ayende Rahien commented on Using NHibernate Session Per Request with WCF Windsor Integration</title><description>Physical layer separation? You mean two different processes?
</description><link>http://ayende.com/2557/using-nhibernate-session-per-request-with-wcf-windsor-integration#comment3</link><guid>http://ayende.com/2557/using-nhibernate-session-per-request-with-wcf-windsor-integration#comment3</guid><pubDate>Fri, 15 Jun 2007 10:47:33 GMT</pubDate></item><item><title>Diego commented on Using NHibernate Session Per Request with WCF Windsor Integration</title><description>Hi,
  
Could you please create a simple example with physical layer separation?? Thanks!
</description><link>http://ayende.com/2557/using-nhibernate-session-per-request-with-wcf-windsor-integration#comment2</link><guid>http://ayende.com/2557/using-nhibernate-session-per-request-with-wcf-windsor-integration#comment2</guid><pubDate>Fri, 15 Jun 2007 01:06:42 GMT</pubDate></item><item><title>Andrew commented on Using NHibernate Session Per Request with WCF Windsor Integration</title><description>Awesome stuff!  Thanks Ayende - I have been wanting to do something like this for months.
</description><link>http://ayende.com/2557/using-nhibernate-session-per-request-with-wcf-windsor-integration#comment1</link><guid>http://ayende.com/2557/using-nhibernate-session-per-request-with-wcf-windsor-integration#comment1</guid><pubDate>Thu, 14 Jun 2007 11:50:05 GMT</pubDate></item></channel></rss>