gwt connection between clients
-
18-06-2021 - |
Question
I’m very new to gwt developing and I would like to know, if it is possible to change client information’s from another client. I would like to do following; Person A adds a new car to a list, this modification should also add automatically to another client (website). Is that possible with gwt? Right now, I’m just having the idea to use a solution with a SQL database. Is there a way to connect two websites? Greet
Solution
There is no way to do that directly from client to client.
You will have to implement it via a backend (not necessarily a SQL Server).
Client A sends the modifications/data to the backend.
In order for Client B to see the update you can rely on two different techniques:
- Pull by polling via a Timer (easy to implement)
- Push either by Websockets or Comet (check out atmosphere project)
- Push via event based service (check out gwteventservice project)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow