all groups > dotnet remoting > august 2005 >
You're in the

dotnet remoting

group:

How to keep track of the active clients in server?


How to keep track of the active clients in server? Senthil
8/31/2005 12:00:00 AM
dotnet remoting:
Hi,
There is a need to keep track of number of clients connected to the
remote server. How could it be done for Singleton and CAO activation model?
Can anyone help?

Re: How to keep track of the active clients in server? Allen Anderson
8/31/2005 10:48:35 AM
sure, calve the CAO from the singleton. Track which CAO's get instanced, then remove them with the lifetime management when they go away.

-Allen
http://www.glacialcomponents.com
http://allenanderson.blogspot.com/

[quoted text, click to view]
Re: How to keep track of the active clients in server? Senthil
9/1/2005 12:00:00 AM
I will elaborate the problem. The problem is basically to limit the object
creation in remoting.
I have created a server activated singleton remoting object which has a
method to create CAO object instances. I used a static counter in SAO to
keep track of number of CAO objects created.
When a new request to the SAO singleton object comes for CAO instance
creation
[quoted text, click to view]
allowed or not is decided.
For this, I need to keep track of active CAO objects. One way to do this is
to get notified at server when CAO client gets disconnected. I was not able
to find a way to detect when a CAO object gets disconnected.

Could you please add more on using lifetime management ( I assume it is
using ILease !!!) to solve this. Also is there any better way to solve this?

Thanks and Regards,
Senthil

[quoted text, click to view]

AddThis Social Bookmark Button