A very simple solution to implement a 'push' concept with your UI 100% html/ajax is having a hidden applet to use as client and send messages to the current page or another hidden iframe who refresh the main chat program. Is what Charles is saying but with the UI done in html
Regards Rodrigo Asensio www.rodrigoasensio.com -----Original Message----- From: David Delbecq [mailto:[EMAIL PROTECTED] Sent: Thursday, June 28, 2007 3:14 PM To: Tomcat Users List Subject: Re: how to pop up a window requested by server There is no way with HTTP protocol to push datas to client. To push, you will need other protocol, and then an awfull heavy applet. On the other hand, you could, simply, run aside on the server an IRC service and use one of the existing IRC applets that exist opensource... Dave a écrit : > Thanks for ideas. But the poll is consuming resource even when no messages. > Is there a way for server to push something to client? > > Thanks! > > > David Delbecq <[EMAIL PROTECTED]> wrote: > If you use Ajax4Jsf, you can use a4j:poll to have a part of your > page refreshed every x milliseconds using javascript. In this part you > could put your code to popup something on B if there are new messages. > En l'instant pr‰[is du 28/06/07 14:36, Dave s'exprimait en ces termes: > >> We have a JSF application running on JBoss/Tomcat, and have a requirement >> for users to send short instant messages. When user A sees user B online and >> wants to talk with him/her: >> >> 1. A clicks a button, pop up a window to chat with B 2. On B's >> machine, pop up a chat window. >> >> How to implement the second? We think about using Applet, are there other >> ways ? >> Thanks for any idea on how to implement this for JSF application. >> >> Dave >> >> >> >> >> --------------------------------- >> Boardwalk for $500? In 2007? Ha! >> Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! >> Games. >> >> > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, > e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------- > Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel > and lay it on us. > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message (including any attachments) contains confidential and/or proprietary information intended only for the addressee. Any unauthorized disclosure, copying, distribution or reliance on the contents of this information is strictly prohibited and may constitute a violation of law. If you are not the intended recipient, please notify the sender immediately by responding to this e-mail, and delete the message from your system. If you have any questions about this e-mail please notify the sender immediately. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]