Remoting Interview Question and Answers
21. |
Define client Activated Objects (CAO)? |
|
- The Client Activated Object (CAO) resembles that of a locally created object.
- The fact that the object resides in another app Domain means that it is subject to Garbage Collection.
|
|
|
22. |
What security measures exist for .NET Remoting in System.Runtime.Remoting? |
|
- None.
- Security should be taken care of at the application level.
- Cryptography and other security techniques can be applied at application or server level.
|
|
|
23. |
How can you automatically generate interface for the remotable object in. NET with Microsoft tools? |
|
Use the Soapsuds tool. |
|
|
24. |
When would you use .NET Remoting and when Web services? |
|
- Use remoting for more efficient exchange of information when you control both ends of the application.
- Use Web services for open – protocol – based information exchange when you are just a client or a server with the other end belonging to someone else.
|
|
|
25. |
How do you define the lease of the object? |
|
By implementing ILease interface when writing the class code. |
|
|