Hi,

I'm not an advance user either, but I have some ideas that might work.

To get info on all online users (sessions), you can do either one of the below:
1. Create a mechanism, i.e. singleton, that stores all session IDs and session
object.
2. Keep track of all session IDs in memory or a database or something. Then
make a URLConnection to something like
"http://localhost/cms/servlet/SessionExample;jsessionid=1DC05YWALQ20GGSDC0TBTVA?
dataname=foo&datavalue=bar" to get back the HttpSession instance, where you can
retrieve session data.

The latter method might have performance problem and might not be portable.

On the second question, if you want to send messages to the browser without
user intervention, you might want to try the "trick" used by pushlets.
http://www.javaworld.com/javaworld/jw-03-2000/jw-03-pushlet_p.html.

Hope this helps.


Chay Weei Jye
DaimlerChrysler TSS






 [EMAIL PROTECTED]
 11/15/2001 09:56 AM
 Bitte antworten an soap-user

   An: [EMAIL PROTECTED]
   Kopie:
   Thema: Response without request?

Hi,

I'm using Soap 2.2 and Tomcat 3.2.3. and I'm quite
beginner in both.

I need to keep a list of online soap-users and make it
available to each new user connected to the server.
That's because the idea is that users will communicate
with each other through the server.
The server should forward messages to one or more
recipients referred by their nicknames.

The questions are:
How can I get information about the online users from
Tomcat?
Is it possible to send message to a client which
doesn't requested it using Apache Soap?

Thanks in advance,
-katja-

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page from News and Sport to Email and
Music Charts
http://uk.my.yahoo.com

Reply via email to