Sunday, January 9, 2011

Remoting & Webservice

Process:
1. It is an instance of the computer program that is being excuted.
2. It is used as a secuirty boundaries.
3. One process has its own virtual memory and does not overlap the other process virtual memory. due to this one process cannot crash the other process.
4. Any Problem or error in one process does not affect the other process.

Application Domain:
1. It is used as a security boundary in which .Net application executes.
2. In application domain multiple applications can run in same process without influencing each other.
3. Any problem or error in one application domain does not affect the other applicaiton domains.
4. One Process can have multiple applicaiton domains.

Note: To invoke method in a object running in different applicaiton domain .Net remoting is used.

What are two different types of remote object creation mode in .Net?
There are two different ways in which object can be created using Remoting.
1. SAO (Server activated objects) also called as Well-Known call mode.
2. CAO (Client activated objects)

1. SAO: It has two modes "Single Call" & "Singleton".
a. Single call: In it object is created with every method call thus making the object stateless.
b. Singleton: In it object is created only once and the object is shared with all clients.

2. CAO: These are stateful as compared to SAO. In it the creation request is sent from client side. Client holds a proxy to the server object created on server.

No comments:

Post a Comment