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

2013-10-28 Thread Timothy Spear
Google gwteventservice.

Tim

On Oct 28, 2013, at 5:01 PM, 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.

-- 
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.


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

2013-10-28 Thread Stevko
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.


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

2013-10-29 Thread Andrea Boscolo
I'd use http://errai.github.io/ and its bus.

On Monday, October 28, 2013 10:01:27 PM UTC+1, 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.


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

2013-10-31 Thread Joshua Godi
Do you have any examples that you have done? Been having a hard time trying 
to just use the event bus portion.

On Tuesday, October 29, 2013 2:16:01 PM UTC-5, Andrea Boscolo wrote:
>
> I'd use http://errai.github.io/ and its bus.
>
> On Monday, October 28, 2013 10:01:27 PM UTC+1, 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.