Give GWTEventService a try.
On Thursday, November 6, 2014 10:09:05 PM UTC+2, Peter Donald wrote: > > Hi, > > On Thu, Nov 6, 2014 at 12:07 AM, Marcel K <[email protected] > <javascript:>> wrote: > >> Which framework for Server Push do you recommend, since Atmosphere >> doesn't seem to work with GWT 2.7.0? >> > > It sort of depends on your environment and what your underlying platform > supports. Below is a response I made to another similar question on the > mailing list. > > In short if you can use latest JEE or jersey then I would recommend that > you use > * built-in web sockets ( > https://github.com/realityforge/gwt-websockets-example/blob/master/src/main/java/org/realityforge/gwt/websockets/example/server/ChatServer.java > ) > * addon support for EventSource/ServerSent events ( > https://github.com/realityforge/gwt-eventsource-example/blob/master/src/main/java/org/realityforge/gwt/eventsource/example/server/ > ) > * Servlet 3 async services for long polling ( > https://github.com/realityforge/gwt-webpoller-example/tree/master/src/main/java/org/realityforge/gwt/webpoller/example/server > ) > > We use all three in our server push apps with GWT clients. > > HTH > > > On Fri, Oct 31, 2014 at 5:22 AM, Peter Donald <[email protected] > <javascript:>> wrote: > >> Hi, >> >> We have built several systems like this where we want to push data to >> clients from the server. The client is responsible for subscribing to a >> channel possibly with filters in place. Rather than use GWT-RPC we have >> tended to move to using raw messages that are typically json blobs. We have >> used 4 basic strategies depending on the clients supported and the >> application requirements. The strategies are; >> >> 1. WebSockets >> 2. Server-Sent Events >> 3. Long polling >> 4. Periodic Polling >> >> I had a poke around and found a good stack overflow answer to this (See >> [1]) >> >> When we faced the same issues, we ended up putting together a couple of >> libraries >> to help with in GWT. >> >> * websockets: https://github.com/realityforge/gwt-websockets >> * Server-sent Events: https://github.com/realityforge/gwt-eventsource >> * Polling: https://github.com/realityforge/gwt-webpoller (Warning this >> API is not yet at 1.0 status) >> >> The tricky part is actually managing the channels and messages sequencing >> in each channel but we never got arounf to releasing our code for that part >> of the problem. >> >> HTH >> >> [1] >> http://stackoverflow.com/questions/11077857/what-are-long-polling-websockets-server-sent-events-sse-and-comet >> > > -- > Cheers, > > Peter Donald > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
