Hi!
JSM comes to mind here, it's specifically designed for those publish/subscribe thingies. More info: http://java.sun.com/products/jms/tutorial/1_3_1-fcs/doc/jms_tutorialTOC.html
 
Hope this helps!
 
-mw
----- Original Message -----
From: APL
Sent: Thursday, October 24, 2002 11:48 PM
Subject: Re: Sending Response Objet to client without request.

Your question raises some interesting issues about the limitations of the web server-client relationship. Ideally, what you need is a classic "publish and subscribe" paradigm (which is what this servlet mailing list  is really, except its using email), but this isn't how web clients and their hosts work together - its more like "ask me a question, and I'll (try to) tell you the answer, but if I don't find it till later, you'll never know!!", which is hardly a satisfactory solution, if one at all, but hey, it cheap and easy to develop and deploy! An alternative is to have a special network listener (a web server is a glorified listener, but one that only operates "on demand") that maintains continuous communication with its clients, even when there's nothing to "say", which is expensive on network resources, so there's the downside, but doable. Maybe you need to think instead about EJB's and RMI (since Java doesn't support the function pointers that would allow a callback function between (say) a C++ client and an RPC to a remote host)...good luck!
 
[waste of bandwith deleted]
-----
From: Mazhar@grouppk [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 24, 2002 1:07 AM
To: [EMAIL PROTECTED]
Subject: Sending Response Objet to client without request.

hi;
 
I have to develop an application that have to fetch data from server after some time, or when ever there are some changes in data on the server then server have to send those changes to the clients ( http clients viewing that site).
The simplest way to set some time interval in java script of client side to refresh the page.
 
Is there any way that I can send response to all clients without their request ( I have IPs of those clients)..????
 
Any Comments or suggestions...
 
Mazhar!

Reply via email to