> From: Hervé Guidetti [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 14, 2001 5:05 AM
> 
> We have applications running on Turbine on our server. We 
> sometimes want to
> manage it (update applications, etc).
> So we want to send a message to all the user connected to 
> inform them. I
> thought that we could use the data.setMessage("Please logout. 
> Management in
> 10 min.") to inform them.
> 
> My questions are :
> Is it possible, with Turbine, to retrieve all the RunData ?

Unfortunately, that's not the right question to ask.  RunData objects are
created on a per-request basis; that is, they come into existence when the
servlet starts processing a new request, and go away at the end of each
individual request.  They are not persistent, like (for example) the User
object, which is stored in the HttpSession for the entire lifetime of the
session.

> If no, do you have an idea to do that ?
> Is there another system ? maybe on the servlet server (Catalina).

To make this work you'd need a persistent message source, and a portlet to
read it from it and maintain state concerning the most recent message
retrieved (to show each user each message only once).  The former could be
implemented as a service.

Keeping track of logged-in users is probably the wrong way to go about this
problem (push vs. pull), but might be useful for several other reasons.  The
downside is that most users never explicitly log off, so you'd end up with
phantom users on sessions waiting to time out.  This could be done by
extending your favorite User object to alert a registry service about the
comings and goings of individual users.

-- 
Craig Berry - (310) 570-4140
VP Technology
GlueCode
1452 Second St
Santa Monica CA 90401



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to