tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: how to pop up a window requested by server
Date Thu, 28 Jun 2007 17:42:57 GMT
> From: Dave [mailto:javaone9@yahoo.com] 
> Subject: Re: how to pop up a window requested by server
> 
> Is there a way for server to push something to client?

Only if the client is listening for it.  Your applet could establish a
listen on some agreed upon port, and the servlet could open a connection
to that port when needed.  Error recovery and releasing resources can
get messy on the server end.  (E.g., you probably need a separate thread
spawned in the servlet to send the notification to the client, and you
have to remember to make that thread terminate if the webapp shuts
down.)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message