﻿<?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>Distributed Systems Simplified commented on Disconnected Mode Change Tracking</title><description>The idea of having a generic bus object that dispatches message objects to their appropriate message handler objects seems to have struck a chord with Ayende (aka Oren). It is definitely one way of doing the Unit-of-Work Pattern that also...
</description><link>http://ayende.com/2275/disconnected-mode-change-tracking#comment10</link><guid>http://ayende.com/2275/disconnected-mode-change-tracking#comment10</guid><pubDate>Fri, 06 Apr 2007 23:39:13 GMT</pubDate></item><item><title>Solution Architecture commented on Disconnected Mode Change Tracking</title><description>The idea of having a generic bus object that dispatches message objects to their appropriate message...
</description><link>http://ayende.com/2275/disconnected-mode-change-tracking#comment9</link><guid>http://ayende.com/2275/disconnected-mode-change-tracking#comment9</guid><pubDate>Wed, 04 Apr 2007 22:24:05 GMT</pubDate></item><item><title>Steve commented on Disconnected Mode Change Tracking</title><description>Excellent. 
  
  
You know, I have read as much as I can on this and never realized this was available.
  
  
I'm rather new to NHibernate (if you can't tell by now... lol).  Is there any simple barebones sample of what this would look like?
  
  
I've seen several questions on this on NHibernate boards and AR boards and have yet to see this response.
  
  
Thanks again Ayende (as always!)
</description><link>http://ayende.com/2275/disconnected-mode-change-tracking#comment8</link><guid>http://ayende.com/2275/disconnected-mode-change-tracking#comment8</guid><pubDate>Sun, 01 Apr 2007 00:50:22 GMT</pubDate></item><item><title>Ayende Rahien commented on Disconnected Mode Change Tracking</title><description>No need to do anything special.
  
Make sure that you would define a &lt;version&gt; property, and head your merry way.
  
when the object is received from the WS, create a session and attach the object to the session ( session.Lock(obj, LockMode.None); ) and then save.
  
NH will take care of concurrency.
</description><link>http://ayende.com/2275/disconnected-mode-change-tracking#comment7</link><guid>http://ayende.com/2275/disconnected-mode-change-tracking#comment7</guid><pubDate>Sat, 31 Mar 2007 18:26:52 GMT</pubDate></item><item><title>Steve commented on Disconnected Mode Change Tracking</title><description>an object is retrieved from a webservice, changes are made on the client (winform), the object is sent back to the webservice where an update is called.
  
  
  
  
</description><link>http://ayende.com/2275/disconnected-mode-change-tracking#comment6</link><guid>http://ayende.com/2275/disconnected-mode-change-tracking#comment6</guid><pubDate>Sat, 31 Mar 2007 18:11:24 GMT</pubDate></item><item><title>Ayende Rahien commented on Disconnected Mode Change Tracking</title><description>Define disconnected.
  
You can certainly work with a session that is not connected to a database, and you can even serialize and de-serialize a session, if you really feel like it.
</description><link>http://ayende.com/2275/disconnected-mode-change-tracking#comment5</link><guid>http://ayende.com/2275/disconnected-mode-change-tracking#comment5</guid><pubDate>Sat, 31 Mar 2007 18:07:50 GMT</pubDate></item><item><title>Steve commented on Disconnected Mode Change Tracking</title><description>Unit of Work:
  
  
Would this work in NHibernate if there was such a thing as a 'disconnected' ISession ?
  
  
Because the ISession is handling the state changes, not the objects themselves - right?
  
  
Good post, I've been struggling with this issue on how to properly use NHibernate with my Web Services.
  
  
</description><link>http://ayende.com/2275/disconnected-mode-change-tracking#comment4</link><guid>http://ayende.com/2275/disconnected-mode-change-tracking#comment4</guid><pubDate>Sat, 31 Mar 2007 18:03:35 GMT</pubDate></item><item><title>Ayende Rahien commented on Disconnected Mode Change Tracking</title><description>I just read your post about it, and I think that I understand it better now.
  
The idea of a bus that dispatch messages by their schema is interesting, but I am not sure if I like it.
  
Can you explain to reasons for using:
  
  
myBus.Send(addLineToOrder);
  
  
vs.
  
  
orderService.Send(addLineToOrder);
  
</description><link>http://ayende.com/2275/disconnected-mode-change-tracking#comment3</link><guid>http://ayende.com/2275/disconnected-mode-change-tracking#comment3</guid><pubDate>Sat, 31 Mar 2007 16:39:10 GMT</pubDate></item><item><title>Ayende Rahien commented on Disconnected Mode Change Tracking</title><description>I think that we may be talking about two different levels here.
  
IBus &amp; IMessage are infrastructure, as such, I really don't care about them when thinking about the service interface.
  
Unless you are talking about true IMessage, in which the messages are not conforming to any schema (ws-duck), which I don't think you do.
  
  
I am thinking about the interface that the service exposes as a way to pass Command messages, so I would have AddLineToOrderCommandMessage, for instance, and it would implement IOrderCommandMessage, and the service would accept only message that conform to valid IOrderCommandMessage implementations.
</description><link>http://ayende.com/2275/disconnected-mode-change-tracking#comment2</link><guid>http://ayende.com/2275/disconnected-mode-change-tracking#comment2</guid><pubDate>Sat, 31 Mar 2007 16:36:06 GMT</pubDate></item><item><title>Udi Dahan: The Software Simplist commented on Disconnected Mode Change Tracking</title><description>IMessage IS an infrastructure interface, as is IBus, and IMessageHandler. The exist to codify distributed communications. 
  
  
The specific messages sent are defined in a different package.
  
  
Does that clear it up a bit?
  
  
Check out http://udidahan.weblogs.us/2006/06/02/can-indigo-be-my-bus/ for some more information.
</description><link>http://ayende.com/2275/disconnected-mode-change-tracking#comment1</link><guid>http://ayende.com/2275/disconnected-mode-change-tracking#comment1</guid><pubDate>Sat, 31 Mar 2007 15:50:01 GMT</pubDate></item></channel></rss>