On 04/07/2010 04:10 AM, Bergman, Yosi wrote:
Hi,
I saw a couple of messages but could not find any answer.
(http://old.nabble.com/Mina-Client-Quick-Shutdown-ts21417062.html#a21417062)
How do I make all MINA threads (especially IoHandler) a daemon thread ?
Even just for development reasons, I want the process to shutdown once the main
(user) thread is terminating.
Thanks.
Yosi.
? Aren't they already?
Here's what I do to shut down my Mina server:
at startup:
...
protocolAcceptor = new NioSocketAcceptor();
...
protocolAcceptor.bind();
...
at shutdown:
...
protocolAcceptor.unbind();
protocolAcceptor.dispose();
...
The process seems to shut down fine after that.
DR