• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Data Push Model

 
Bartender
Posts: 11445
18
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am wondering if GWT implicitly supports a Push model.
I got data shared between multiple clients. If one of the clients changes such common data, the other clients need to get a refreshed copy. One way could be to keep on polling the server after x time interval. Is there any means of pushing it from the server side something like JSM approach?
 
Bartender
Posts: 2345
102
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well.....
How about request builder ?



Client sends a request with a timeout of approx 5 minutes...
server starts a thread for the rpc invocation
Server responds as and when required,
after 5 mins, client resends request...

problem with this approach:
server threads !!

advantages:
better than polling

 
Poop goes in a willow feeder. Wipe with this tiny ad:
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!