Reloading Vaadin UIs without restarting the application
Asked Answered
W

2

6

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?

Wavawave answered 21/3, 2017 at 12:25 Comment(1)
Depends on your toolchain. When you for example use Netbeans with a local tomcat/ee, you can make small code changes direct beeing taken over with no reload. But on structure changes you will have redeploy the appHeptad
K
1

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.

Kahn answered 21/3, 2017 at 16:30 Comment(1)
I'd also mention devtools (docs.spring.io/spring-boot/docs/current/reference/html/…) for those who happen to use Spring Boot.Augustinaaugustine
Q
0

We use Jetty in development and have configured hot deployment to it. Applications state will be lost, but during development it's most probably exactly what you want. http://www.eclipse.org/jetty/documentation/9.4.x/hot-deployment.html

Quadriplegia answered 22/3, 2017 at 17:37 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.