Microsoft.Net Interview Questions and Answers - 2

Question: 6

What do you mean by server-activated objects?

Server-activated objects (SAOs) are remote objects whose lifetime is controlled by the server. You cannot create objects by using the new keyword.

An SAO object is activated when a client calls a method on the proxy object. .NET Remoting Framework refers to these objects as well-known objects, because the server application publishes these objects at a well-known Uniform Resource Locator (URL) before activating object instances.

Question: 7

How are application, process, and application domains are related?

An application is an executable file on the hard drive or network. A process is an instance of a running application.

Numerous processes can be launched by the same application; however, one process can run just one application.

Application domain is virtual location in memory where a process runs.

Question: 8

How is a method called asynchronously in remoting?

Using delegates, you can call a method asynchronously in remoting.

Question: 9

Define transparent and real proxies?

The transparent proxy creates the illusion that the actual object resides on a client when the client and server are in the same application domain.

The transparent proxy interacts with a client and captures the remote method call made by the client.

The transparent proxy is implemented by using the Transparent Proxy class.

The real proxy creates the illusion that the actual object resides on a client when the client and server are in different application domains.

The real proxy actually sends and receives the messages from a remote object. A real proxy is implemented by using the Real Proxy class.

Question: 10

How can you decide to use the singleton mode in remoting?

If all the remoting clients share the same data, you can use the Singleton mode.

Related Questions