| What is an application domain? | ||
Previously "PROCESS" where used as security boundaries. One process has its own virtual memory and does not over lap the other process virtual memory; due to this one process can not crash the other process. So any problem or error in one process does not affect the other process. In .NET they went one step ahead introducing application domains. In application domains multiple applications can run in same process without influencing each other. If one of the application domains throws error it does not affect the other application domains. To invoke method in a object running in different application domain .NET remoting is used.
| ||
| What is .NET Remoting? | ||
.NET remoting is replacement of DCOM. Using .NET remoting you can make remote object calls which lie in different Application Domains. As the remote objects run in different process client calling the remote object can not call it directly. So the client uses a proxy which looks like a real object.
When client wants to make method call on the remote object it uses proxy for it. These method calls are called as "Messages". Messages are serialized using "formatter" class and sent to client "channel". Client Channel communicates with Server Channel. Server Channel uses as formatter to deserialize the message and sends to the remote object. | ||
| Which class does the remote object has to inherit? | ||
All remote objects should inherit from System.MarshalbyRefObject.
| ||
| what are two different types of remote object creation mode in .NET? | ||
| ||
| Explain the Basic of SAO architecture of Remoting? | ||
It has atleast three sections
Common Interface which will be shared between them. Server Client | ||
| What are the situations you will use singleton architecture in remoting? | ||
If all remoting clients have to share the same data singleton architecture will be used.
| ||
| What are the ways in which client can create object on server in CAO model? | ||
There are two ways by which you can create Client objects on remoting server:
Activator.CreateInstance(). By Keyword "New". | ||
| Are CAO stateful in nature? | ||
Yes. In CAO remoting model client creates a instance on server and instance variable set by client on server can be retrieved again with correct value.
| ||
| Is it a good design practice to distribute the implementation to Remoting Client? | ||
It's never advisable to distribute complete implementation at client, due to following reasons:
Any one can use ILDASM and decrypt your logic. It is a bad architecture move to have full implementation as client side as any changes in implementation on server side you have to redistribute it again. so the best way is to have a interface or SOAPSUDS generated meta-data DLL at client side rather than having full implementation. | ||
| What are LeaseTime, SponsorshipTime, RenewonCallTime and LeaseManagerPollTime? | ||
|






0 comments:
Post a Comment