Best way to notify several java applets/applications of a change on a server

Posted by Dustin on Stack Overflow See other posts from Stack Overflow or by Dustin
Published on 2010-12-22T20:27:05Z Indexed on 2010/12/22 21:54 UTC
Read the original article Hit count: 150

I need to know the best (fastest) way to have a server (preferably a php based one, but a jsp/servlet one could be set up as well using google app engine) notify several java applets/applications that a change has occurred to the data.

The way i am picturing this to work will be very similar to that of the way i think an online java game (like Runescape) works
User 1: Changes data on server.
Server: returns success to User 1, notifies connected computers of change.
Connected Computer 1: processes change, returns success to server.
Connected Computer 2: processes change, returns success to server.
Connected Computer 3: processes change, returns success to server.
Connected Computer 4: processes change, returns success to server.

I am hoping to have this entire process complete in half a second, and not involve polling as there will be long durations of nothing, followed by a sudden moment where 4 events happen in succession.

© Stack Overflow or respective owner

Related posts about java

Related posts about google-app-engine