[undertow-dev] Return HTTP Status 503 (Service Unvailable) until Web Application is available.

Thomas Darimont thomas.darimont at googlemail.com
Mon Jan 30 05:34:16 EST 2017


Hello group,

(coss-post from keycloak-user Mailing List)

the undertow servlet-container is started pretty early during the startup
of the
wildfly application server. However the initialization of the keycloak
server
application might take a while to complete. Within this period requests
that are
sent to the keycloak endpoints result in responses with HTTP Status Code
404.

Is it possible to configure undertow to return a HTTP Status Code 503
(Service Unvailable)
until the keycloak application startup has completed?

This would ease configuring load-balancers and to avoid showing a file not
found
to users during server restarts.

Cheers,
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20170130/9bffab2f/attachment.html 


More information about the undertow-dev mailing list