When I deploy a web app for breath moment it will return 404 HTTP status codes. Is it possible to change it to return 503 while it's deploy'ing? That would be great, because i'm using nginx as a load balancer and I can configure it to pass to next server if the response http status code is 503.
Also, is it possible to check via native management CLI if a deployment is in progress? I tried " /host=host/server=server/deployment=deployment.war:read-attribute(name=status)", but if it's currently in progress the command just hangs, waits for it to finish and then returns "status = OK". I'm looking for something like status=deploying. Is there something like this?
I created [WFLY-4229] Make http status return whily deploying configurable - JBoss Issue Tracker for implementing configurable http status that is returned while deployment is going on.
As for second question, that wont work deploy operation is a blocking on. This is something we could improve on.