We've got a thread checking if our database is ready. The thread is exited when the database is available. However in some case the Wildfly server is shutting down before a database is ready. In that case, Wildfly won't shutdown since this thread is still alive.
We're looking for a method to notify this thread or a possiblity to check the state (running, shutting down, starting and so on) of the Wildfly server in order to stop that thread.
Any idea?