Hi!
If I have data that can be shared by all application instances, for example configuration data (changeable at runtime), what is the best way in Vaadin?
(1) In a classical Java web application I could use the application context (ServletContext) to put and read attributes. I already know that I can use the TransactionListener interface in Vaadin to access the WebApplicationContext, and so the ServletContext, as well …
(2) I could introduce a singleton that can be accessed by every Vaadin application.
Is there a favorite option for Vaadin? Maybe more suggestions?
Thanks,
Dirk