There are several ways I've managed to do push messages to the client:

If you are using appengine, research the Channel api
https://developers.google.com/appengine/docs/java/channel/

If you have access to an MQ server (like ActiveMQ), consider using a 
JMS/STOMP/WebSocket protocol stack
http://blog.furiousbob.com/2011/03/20/receiving-jms-gwt/

as per Timothy, gwteventservice using the Comet method of pushing messages 
to the client.

I've refactored MVP applications designed to use GWT RPC, consolidated the 
Async callback code into a bona fide Model layer injected into the 
presenter layer, and then replaced the Model layer with an async protocol 
stack that communicates via jms/websocket to push updates to the 
presenter/client component.


On Monday, 28 October 2013 14:01:27 UTC-7, Joshua Godi wrote:
>
> Good afternoon,
>
> I was curious how I would properly send a message from the server to the 
> client? Here is my scenario:
>
> Client A - Modifies User1 from the GUI and pushes the data to the server
> Client B - Is looking at User1 and needs to be notified that there are 
> changes that have been made
>
> So the server needs to send a message to all clients that the user has 
> changed.
>
> What is the best way to solve this?
>
> Thanks,
> Joshua
>

-- 
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 google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to