Reputation: 47947
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?
Upvotes: 0
Views: 1487
Reputation: 3517
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.
Upvotes: 1
Reputation: 1198
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.
Upvotes: 0