What are the two different types of remote object creation mode in .NET ?

 Posted by Bharathi Cherukuri on 6/5/2012 | Category: ASP.NET Interview questions | Views: 1800 | Points: 40

There are two different ways in which object can be created using Remoting. They are:
• SAO (Server Activated Objects) also called as Well-Known call mode.
• CAO (Client Activated Objects)
SAO has two modes “Single Call” and “Singleton”.
With Single Call object, the object is created with every method call thus making the object stateless.
With Singleton, the object is created only once and the object is shared with all clients.
CAO are stateful as compared to SAO. In CAO, the creation request is sent from client side. Client holds a proxy to the server object created on server.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response