Monday, October 28, 2013

Re: GWT - Send a message from the server to the client?

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

If you are using appengine, research the Channel api

If you have access to an MQ server (like ActiveMQ), consider using a JMS/STOMP/WebSocket protocol stack

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?


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
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment