Link to home
Create AccountLog in
Avatar of anotherfn
anotherfn

asked on

Server-side java timers

We are building a system which will connect our ActionScript 3 client to a server-side java back-end through BlazeDS.  At this point in the project, we are required to build in a timer system, which will update a sprite on the client to show time remaining.  Several clients will be connected to the java back end at once, so what is the most efficient and effective way to run a Java.utils timer on the server side, which will update all the connected clients with the time remaining information?
ASKER CERTIFIED SOLUTION
Avatar of for_yan
for_yan
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer

This is more about JMS:
http://www.coderanch.com/t/315732/EJB-JEE/java/JMS-or-RMI-notify-client

And this callback example with CORBA - CORBA was popular some yaers ago, but not much iused now:
http://download.oracle.com/javase/1.4.2/docs/guide/idl/jidlExample3.html

Usually CORBA is good for cross-language access, for Java on both sides RMI
usually can be used instead of CORBA, however I'm not sure RMI provides callbacks, and to set up RMI server on the client  no matter how lightweight it is,
it is still inconvemience

Avatar of stachenov
stachenov

I'm totally unfamiliar with BlazeDS, however, I've just found this document which describes something very similar to what you're trying to achieve. As far as I understood it at least.
Avatar of Sathish David  Kumar N
which framwork your using ?????
Avatar of anotherfn

ASKER

partially answered