users@grizzly.java.net

[Q] how to determine selector's connected clients

From: ALT Mobile DEV <dev_at_altmobile.com>
Date: Mon, 11 Feb 2008 13:40:34 -0500

Hi,


When using embedded Grizzly and Grizzlets, I would like to know are
there any Comet/parked connections. Even though I am pushing content
to Comet clients, I always get 0 for the following:


aSelectorThread
.getSelector(aRequest.getServerPort()).getKeepAliveCounter().size()

aSelectorThread
.getSelector
(aRequest.getServerPort()).getKeepAliveStats().getCountConnections()



What's the correct way to determine Comet connections from within a
Grizzlet?


thanks.


--Zaid

ALT Mobile

http://altmobile.com/Home.html (web site)
http://web.mac.com/altmobile/ (official blog)