Friday, June 19, 2009

.Net Remoting

As part of the subject ITI533 which covers Microsoft .Net Framework 2.0 Distributed Application Development, I have studied remoting technologies in .Net.

As outlined by Morgan, Ryan, Horn & Blomsma (2007, pp. 127 -133) remoting works by making a class a remotable type by inheriting from the MarshalByRefObject class. You then host your remotable type inside an application. The application could be a console application, a windows application, an ASP.Net web application or a windows service. The host application registers a channel so that other applications can access the remote object. The remoting system then listens for incoming requests for your remote object and routes the requests according to the activation mode used. Activation can be server activated eg single call and singleton and client activated. Channels are used to connect remote objects and transport messages between them. The .Net framework allows TCP, HTTP and IPC channels to connect to remote objects.
The following namespaces are used for remoting applications:
  • System.Runtime.Remoting
  • System.Runtime.Remoting.Channels

No comments:

Post a Comment