directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paolo Perrucci <p.perru...@ludonet.it>
Subject [mina] How to implement graceful shutdown
Date Thu, 29 Sep 2005 14:00:25 GMT
Hi all,

I want to implement a graceful shutdown mechanism for a simple 
MyApplicationServer using mina.
I want to realize a shutdown() method that block accepting connections 
and wait for all connected client to exit closing their connections.
Doing some tests, it seems that SimpleServiceRegistry.unbind() methods 
stops thread pool so I must close the active connections BEFORE unbind 
the service.
Is there a "suggested" way to do this?

Thanks
Paolo

Mime
View raw message