What are the remotable and non-remotable objects in .Net Remoting? - Remoting.NET

What are the remotable and non-remotable objects in .Net Remoting?

The remotable objects are the objects which can be distributed across domains, can be used with domain. The non-remotable objects are the objects which can't be distributed across domains. In distributed system, if an object is very big, we can make it non-remotable object.

Remotable and Nonremotable objects

You have two categories of objects in distributed applications: Remotable and Nonremotable objects.

Nonremotable object can’t be accessed outside its own application domain. This kind of object doesn't allow its methods or properties to be used by remoting system. Remotable objects can be accessed outside its own application domain. The remoting system can use methods and properties of this kind of object.

There are two types of remotable objects

- Marshal-by-value-objects - When client calls a method on marshal-by-value-object, the remoting system creates a copy of this object and passes the copy to the client application domain. The copy hence received can handle any method call in client domain. Using Marshal-by-value-object reduces resource consuming trip across network.

- Marshal-by-reference-object - When client calls a method on Marshal by reference object, the remoting system create proxy object in the caller application that contains the reference of all method and properties of the object.
Describe the type of remotable objects in .Net Remoting - Remoting.NET
.NET Remoting - Marshal-by-value-objects - When client calls a method on marshal-by-value-object, the remoting system creates a copy of this object...
What are the types of activation modes in .Net remoting? - Remoting.NET
.NET Remoting - Server Activation Mode: In this mode, objects are created on the server when we call a method in the server class and not when we create instance using new...
Post your comment