Have you tried something like this (attached)?

--
Robert Hailey


WARNING: Quick hack, totally untested, absolutely no warranty.

Attachment: OrderedShutdownHubImpl.java
Description: Binary data

On 2013/04/04 (Apr), at 5:01 PM, Muhammad Gelbana wrote:

> I've raised the question before but I've reached a point where I must
> resolve this.
> 
> Since the RegistryShutdownHub doesn't offer ordering to call registered
> will-shutdown/shutdown listeners, has anyone managed to order the shutdown
> process of his application ?
> 
> I need to shutdown my services before destroying the database connection.
> 
> Thank you.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to