0

I know Wildfly can't do hot deployment, but its able to do (at least) auto deployment.

I'm using Eclipse, and Maven.

I'd like that when I Run (or Debug) the project, it will compile the whole, copy the target .war to standalone\deployments's wildfly folder, and than Wildfly must be able to catch the change without restart the server, of course. So, once compiled, I can immediatly use the changes in the project.

How can I do it? I can't find any tutorial or tips online. Fancy help?

markzzz
  • 47,390
  • 120
  • 299
  • 507
  • Without doing a restart ? There are situation where you can't prevent that. Apart from that what does Wildfly not support hot deployment (Question: What do you understand by hot deployment?) https://stackoverflow.com/questions/29771904/hot-deployment-location-in-wildfly-8-as ? – khmarbaise Feb 26 '18 at 16:28
  • @khmarbaise: https://stackoverflow.com/questions/969279/hot-deploy-on-jboss-how-do-i-make-jboss-see-the-change/38403724#38403724 – markzzz Feb 26 '18 at 16:30
  • Ok than you can only go via JBoss tools in Eclipse and do it from there...and you have to live with those things or you buy JRebel... – khmarbaise Feb 26 '18 at 16:31
  • @khmarbaise: can you show me how to do it? Thats the question... – markzzz Feb 26 '18 at 18:36

2 Answers2

1

You could use the exploded content and jboss-cli or whatever client you want to overwrite your class file. But you will need to redeploy your deployment since hot-deploy through jpda only works if the code signature doesn't change. JBoss Tools should do that for you.

ehsavoie
  • 3,126
  • 1
  • 16
  • 14
0

As far as I know, eclipse debug mode can make hot deploy to wildfly. But sometimes it would not work.

And Intellij debug mode can make hot deploy to wildfly, it works really well. But for add new class, new annotations, new method, new attributes still needs restart. Changing logic within method is fine.

Bejond
  • 1,188
  • 1
  • 11
  • 18