on 12/27/2000 10:14 AM, "Diethelm Guallar, Gonzalo"
<[EMAIL PROTECTED]> wrote:
> We have at least two different projects where our clients have asked
> for the ability to send a proactive message to the client, advising
> him or her of an exceptional situation. As I understand things, this
> is not possible in a pure browser model, where the browser has a
> simple cycle of "read data, send to server, read response, show to
> user". Therefore, it seems obvious the requirements for proactive
> messages cannot be supported without some additional mechanism; I can
> see two ways out:
Yes. Client/Server with a connectionless protocol between the two.
> 1. Have every page refresh itself every N seconds, and show proactive
> messages when they appear on the server. This is tantamount to
> polling, is an ugly hack, and I only mention it for completeness.
Not a hack. It actually works pretty well and scales because you don't have
to leave a connection to the server open.
> 2. Have an applet running on the browser, listening on a specific
> port; when a message arrives, pass it on to the browser (probably
> via JavaScript) so that the browser can do something with it. This
> add listening functionality to the browser, and may open up a whole
> can of worms in terms of security.
Huh? Where is security a problem here? Applets are not inherently insecure
any more than anything else is. The problem with Applets is that the sandbox
that they run in isn't necessarily secure. That has absolutely nothing to do
with worms. :-)
Anyway, this would be another solution. You could use XML-RPC/SOAP as the
protocol between the two quite easily (allowing other clients than just
applets to be written).
> Does anybody have opinions on how this could be handled? Does Turbine
> provide any mechanism for this kind of functionality? If the applet is
> the way, anybody knows any open source components that implement this
> solution? Comments are welcome. Thanks,
Turbine has services for XML-RPC and it is a framework for building a secure
system for sending the data out.
thanks,
-jon
--
Honk if you love peace and quiet.
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]