Thus, when a new client is added to the list, the counter is incremented, and conversely, when a client disconnects from the application server, the reference is decremented. When the reference counter goes to zero, the application will close. When an application server is not already running, DCOM will launch the application and set the reference counter appropriately. If a client is to disconnect without decrementing the reference count, there must be a way for the server to automatically decrement the reference count. Multiple Interfaces DCOM is primarily implemented through the use of interfaces.
Interfaces are the exposed methods and properties of a particular object.
There can be many interfaces to the same object. This provides the ability to customize an object without necessarily redeveloping it. This becomes especially important when the object requires additional functionality that only a subset of the clients require. In this situation, the developer can use the same implementation with different interfaces. This can be accomplished even though the actual implementation may be exactly the same.