Reputation: 92550
I want to get a development experience like I get with Play! framework with JAX-RS (with Jersey for example). More specifically I want to use some kind of background compilation and run the compiled code immediately so that I have almost no waiting time.
My first attempt was to use NetBeans background compilation and Maven with plug-ins for Tomcat and Jetty which are restarting the application in the running container. But restarting took too long. I'm wondering if I need to restart the application if code changed or if something like Grizzly or Netty instead of a Servlet container would help.
Any ideas how to get fast reloads with JAX-RS?
Upvotes: 4
Views: 2084
Reputation: 686
Try this, you need to add the dependencies. It uses jreloader (open source). ant archetype
Edit: People are still visiting this post after two years. Now there's a complete alternative for hot reloading and the project is active again http://dcevm.github.io/
You may need to use this as well https://github.com/HotswapProjects/HotswapAgent
Upvotes: 3
Reputation: 16066
Take a look at gretty: https://github.com/groovypp/gretty It should work with jersey and you should see fast runtime reloads.
Upvotes: 2