We have implemented a push service using the long polling technique. It works basically like this:
- the client makes a request to a service; - in the server side, the service blocks while waiting for an event to happen for a specified amount of time (30 seconds, for instance); - either when (1) the desired event occurs or (2) the time is over, the service stops blocking and finishes execution, responding to the client; - the client handles the response and... - ... repeats the request to the service Of course, that technique is not efficient for a relatively high number of clients since the server will hold a thread for each blocking request. If that's a problem for you, take a look at Jetty's implementation of Continuations. Regards, Célio On May 12, 4:06 am, zimzalabim <oyst....@online.no> wrote: > Hi all! Please bare with me if my questions is newbie'ish or if it has > been answered before, tough I couldn't find an exact answer. > > Ok, I am totally new to GWT and what I have seen so far is impressive. > I have created a very simple GWT client/server application, where the > user types his/her name and sends it to the server, then the server > replies with a greeting. > > Now, I would like to extend this example to make the server > 'broadcast' a message to all clients. I believe this mechanism is > called 'server push'. My question is if someone can help me implement > this simple requirements or guide me to some resources that shows how > it could be done. > > Any help would be greatly appreciated! > > Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---