This is a multi-part message in MIME format.
------=_NextPart_000_0009_01C1C66E.E5066BB0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
----- Original Message -----
From: "Zhang Jinhong" <netbearing@y...>
To: "Java Server" <pro_java_server@p...>
Sent: Friday, March 08, 2002 2:05 AM
Subject: [pro_java_server] how can i get all users online?
> hi,all
>
> now i wanna count the users online. how should i do?
> ---
You could create a static property in the class who get the connection,
or in some JavaBean who represents the connection. The keyword "static"
means that exists for the class and not per instance (object). Then, in
each logged user (in the method who log the user), just add this
property.
Juli=E1n