Problem
- Product : VBC 4.x & later
- Platform: All
- Product Component: ORB
Are there any orb properties that allow the detection of a disconnected client?
Resolution
There is no such property, however, here are some suggestions to do client disconnection detection:
1. Use servant managers like servant activators and locators.
2. Use a timeout thread during object allocation to cleanup the object if the client did not invoke the object within a certain time.
3. Use Event Queue in VBE 5.x.
4. Implement a callback object on your client, and have a thread on the server run through all the callbacks periodically to see if a client is still there, and if not, clean up the server object.
5. Use an OAD in unshared mode to start a server process for every client connection, and shutdown a client process for every disconnection. This is useful only if the client population is not large, like less than 30.
#VisiBroker
#Security
#detectdisconnectedclient




