vaadin7

Displaying Same Data Aross Multiple Clients Using Push in Vaadin 7 app

被刻印的时光 ゝ 提交于 2019-11-26 17:46:38
问题 I want to share the same set of data to multiple clients. I need to use Push to automatically update their view on screen. I have read the Question and Answer, Minimal example of Push in Vaadin 7 app (“@Push”). Now I need a more robust realistic example. For one thing, I know having a never-ending Thread is not a good idea in a Servlet environment. And I don't want each user having their own Thread, each hitting the database on their own. Seems more logical to have one thread alone checking

Minimal example of Push in Vaadin 7 app (“@Push”)

风格不统一 提交于 2019-11-26 11:14:22
问题 I want to see the most minimal example of using the new Push technology in Vaadin 7, such as the new @Push annotation. I am having problems getting server-push to work in my app. I would like to try a simple example app before trying to fix my own app. 回答1: Simplification Of Example In The Book Of Vaadin The Book Of Vaadin includes a chapter on Push, including an example using Vaadin Charts. Below is my code. While based on that Vaadin Charts example mentioned above, I simplified it by