We've got a web application using a mysql data source, whose driver has been added as a module. When the server is shutdowned, it appears that the data source is shutdowned before the web application, which consequently can't update the database before termination.
In the web application, the data source is referenced and used by spring.
How and where to configure explicitly the shutdown order ? How to explicitly set the dependency between the war and its datasource ?