see IoAcceptorConfig: http://directory.apache.org/subprojects/mina/apidocs/org/apache/mina/common/IoAcceptorConfig.html#setDisconnectOnUnbind(boolean)
Maarten On 8/11/06, Michael Bauroth <[EMAIL PROTECTED]> wrote:
Hi, a short question about point 2: How can I realize this unbind? When I call for the acceptor the unbindAll() or unbind(...), in the code documentation I find the hint: "Unbinds from the specified address and disconnects all clients connected there." Regards Michael Trustin Lee wrote: > Here's my suggestion on graceful shutdown. > > 1) Modify your I/O Handler (or ProtocolHandler) to maintain the list of > connected sessions. sessionOpened() and sessionClosed() would be the best > place to do this. > 2) Unbind the service so there cannot be more new sessions. The existing > sessions will not be disconnected at this moment. > 3) Close all sessions in the list you've been maintaining at step (1).
