Karussell
Karussell

Reputation: 17375

Dropwizard hot deployment

I'm looking for a simple to use system in Java which creates a REST service for me. So I found dropwizard but as far as I can use google it turns out it lacks hot deployment although jetty is able to do so. When using the maven-shade-plugin it takes at least 10 seconds to build the thing. Also my IDE reports that it cannot use compile on save feature (aka hot deployment) when the shade-plugin is involved.

Can I use hotdeployment somehow? Or what can I use instead?

Update: If nothing will fix this I'll probably use a combination of jersey&guice etc which is explained in this post

Upvotes: 9

Views: 3124

Answers (3)

Kyle Boon
Kyle Boon

Reputation: 5231

You don't have to use the shade plugin to run your service. You could just compile as a regular jar file and I think that would let you use your IDEs hot deployment features.

Upvotes: 2

Cemo
Cemo

Reputation: 5570

Have you ever tried JRebel ? They have JAX-RS support as well...

Upvotes: 1

Gary
Gary

Reputation: 7257

Not an answer, but I wrote up an article detailing how to use git to push a Dropwizard project to your server and for it to initiate a hot replacement. It relies on git hooks and running Maven via a script on the server.

You can find the details about it here: http://gary-rowe.com/agilestack/2013/02/14/how-to-deploy-dynamic-sites-with-git/

Upvotes: -1

Related Questions