Hi Uday,
On 3/21/07, Uday Prakash (DHL CZ) <[EMAIL PROTECTED]> wrote:
Hi,
I've been working on a small tcp/ip server, that listens for specific
messages and then depending on the message type performs a particular
task. That was the easy part, I was looking into shutting down the
server in an elegant manner. I decided that I'll be listening on a
particular port say 'SHUTDOWN_PORT' and when I receive a pre-defined
message to shutdown, I shall shut the server down.
To do so, I call on acceptor.unbindAll() and shutdown the executor
services. As the documentation points, but what I see is that the
threads continue to stay alive. Is there something I'm doing wrong?
A little direction would help.
All remaining threads should be daemon threads once the port is
unbound, and therefore the VM should exit automatically. If the VM
doesn't exit automatically, please capture the full thread dump after
unbindAll() operation, and send it here so we can analyze the cause of
the problem.
HTH,
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6