Is there a good, supported solution for Server Push using the Google Web Toolkit?

The GPC RPC engine is great for customer initiated communication. We are looking for a reliable, supported way to send push notifications from the server to clients. All the solutions we can find are several years old and do not seem to work with newer versions of Eclipse and GWT.

We are ready to use the Google App Engine if this helps.

We can roll our own socket code if that helps, but we are Java developers. Writing JavaScript for socket operation would be the last thing, although if that is what is required and there are examples, we could handle it.

Any pointers to sample code or suggestions regarding the packages used are welcome.

+6
source share
2 answers

You can use the Atmosphere Framework . They have a gwt20 module that works great with gwt.

+1
source

As far as I know, there are two possible solutions.

You can use Errai first. Errai has an event bus, which can also be used on the server:

https://docs.jboss.org/author/display/ERRAI/Messaging+API+Basics?_sscc=t

I have not used it, but I think you can push the server. The second structure I know is gwt-comet:

https://github.com/rzschech/gwt-comet

I did not use one of them. But if I were looking for a solution for a push server, I would try gwt-comet.

0
source

Source: https://habr.com/ru/post/978955/


All Articles