Remoting Interview Question and Answers
1. |
Define marshaling |
|
- The process of preparing an object to be remoted is called marshaling.
- On a single machine, objects might need to be marshaled across context, app domain or process boundaries.
|
|
|
2. |
Define remoting. |
|
- It is a way to permit applications in separate App Domains to communicate and exchange data.
- It is usually characterized as a client server relationship in which the client accesses resources or objects on a remote server that agrees to provide access.
|
|
|
3. |
What are the two types of remoting |
|
There are two types of remoting. They are- Marshaling by value
- Marshaling by reference
|
|
|
4. |
What are channels in .NET remoting? |
|
- Channels represent the objects that transfer the other serialized objects from one application domain to another and from one computer to another, as well as one process to another on the same box.
- A channel must exist before an object can be transferred.
|
|
|
5. |
What are remotable objects in .NET remoting? |
|
- Remotable objects are the objects that can be marshaled across the application domains.
- You can marshal by value, where a deep copy of the object is created and then passed to the receiver.
- You can also marshal by reference, where just a reference to an existing object is passed.
|
|
|