Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reloading Vaadin UIs without restarting the application

I am developing a Vaadin 8 UI. At the moment, each time I modify the UI, I have to restart my application.

Is there a better way? I have tried attaching the Java debugger and using IntelliJ's Reload Changed Classes feature, but the hotswap fails.

I have seen mention of JRebel in the context of Vaadin, but I can't afford that - Spring Loaded seems to be another option. Is there anything else?

like image 676
Rich Avatar asked Mar 21 '17 12:03

Rich


People also ask

Is Vaadin stateless?

Vaadin Fusion: StatelessBy default, Fusion will not create server sessions and will use the token-based authentication mechanism, keeping the server stateless. Since server endpoints don't use a session, a server can handle more concurrent users, enabling easier horizontal scaling and high availability of services.

Is Vaadin frontend or backend?

Vaadin is a full-stack web app platform. This means that, unlike React or Angular, Vaadin helps you with the backend of the application and makes it easier to coordinate frontend and backend work.


1 Answers

http://www.hermansjavablog.eu/programming/definitive-guide-vaadin-7-maven-tomcat-intellij-idea-hotswap-deployment/ seems quite promising. Maybe there are some options you missed..

EDITED

In Eclipse I tried now with SpringLoaded http://blog.netgloo.com/2014/05/21/hot-swapping-in-spring-boot-with-eclipse-sts/ and amazingly it works.

In Intellij http://tomaszjanek.pl/blog/2015/02/03/hot-reloading-in-spring-boot-with-spring-loaded/ might help to achieve the same.

like image 166
KLHauser Avatar answered Oct 31 '22 17:10

KLHauser