I have a server application that monitors many temperature sensors. Currently I have a swing application that uses sockets to connect to the server, it regularly requests an object that contains all of the temperature sensor objects and then iterates through them calling getCurrentReading() and updates the user interface. The server also has jetty installed and I’ve created custom handlers that generates/serves html to be able to check on the temperature readings from a web browser.
My question is how do I go about moving this to Vaadin? I’m not understanding how I go from getting those sensor readings in the server to having a vaadin app get the readings and update the user interface? I know how to make the jetty start a war file/servlet but I don’t understand how/where the vaadin app will get the data from the server? Do I make custom jetty handlers that the vaadin app will connect to to get the data? Maybe json or xml? I also have a database where the temperature readings up stored but I don’t write to the database everytime I get a new reading…although I could. Any insight or suggestions will be greatly appreciated.