Presentation on theme: ".NET Remoting. .Net Remoting Replaces DCOM (Distributed Component Object Model – a proprietary Microsoft technology for communication among software components."— Presentation transcript:
.Net Remoting Replaces DCOM (Distributed Component Object Model – a proprietary Microsoft technology for communication among software components distributed across networked computers) Uses object oriented architecture An architecture which enables communication between different app domains or processes using different transportation protocols, serialization formats etc.
Remote – any object which executes outside the application domain. The two processes can exist on the same computer or on two computers connected by LAN or internet.
Marshalling or Object Marshalling Specifies how a remote object is exposed to the client application. passing parameters from one context to another..Net Remoting offers object marshalling in 2 ways Marshal by value – server creates a copy of the object and passes the copy to the client. (i.e objects are copies from Server Application Domain to Client Application Domain) Marshal by reference – client creates a proxy of the object and uses the proxy to access the object.(i.e Client just holds the reference to the object )
Comparision between.Net Remoting and Web Services
Architecture Remote objects are accessed through channels Channels – Transport protocols for passing the messages between remote objects A channel is an object that makes communication between client and remote object across application domain boundaries
.Net framework implements two default channel classes HttpChannel : Implements a channel that uses HTTP protocol TcpChannel : Implements a channel that uses TCP protocol
Remoting System – creates porxy for the server object and a reference to the proxy is returned to the client. When client calls a method, Remoting system sends request through the channel to the server.Then client recieves response sent by the serve through the proxy