While an application is being deployed, WildFly returns 404 to any HTTP request. Is it instead possible to instruct WildFly to wait until the deployment is complete, and only then process all the connections?
I.e. current behavior:
- GET
/page/from/my/application
=> 404 NOT FOUND - I myself wait 5 seconds, then press F5 in the browser
- GET
/page/from/my/application
=> 200 OK
Desired behavior:
- GET
/page/from/my/application
=> [here WildFly waits until the deployment is finished] 200 OK
I want to use this only on a development machine, so it's not a resource problem to stall connections, since there will not be many of them anyway.
We currently use WildFly 8, but will likely upgrade to 10 relatively soon, so an answer for 10+ would also be interesting.
Not a duplicate: Another question lists this as one of two acceptable alternatives and has an answer that describes how to achieve the other alternative. I'm only interested in whether it is possible to get the behavior described above, which has no answer there.