Hi,
I would like to use Mina for simple client connection.
Simplified code:
IoConnector connector = new SocketConnector();
SocketAddress socketAddress = new
InetSocketAddress(config.getHost(),
config.getPort());
try {
ConnectFuture future = connector.connect(socketAddress,
new IoHandler(){....});
future.join();
IoSession session = future.getSession();
session.close();
} catch (IOException e) {
e.printStackTrace();
}
Question:
After future.join() I have the next additional Threads in debugger:
Thread [AnonymousIoService-1-1] (Running)
Thread [SocketIoProcessor-0] (Running)
Thread [AnonymousIoService-1-2] (Running)
Thread [PooledByteBufferExpirer-0] (Running)
All seems OK. But after sesson.close() only one Thread [SocketIoProcessor-0]
terminated.
How I can terminate another threads?
Regards,
Andrey
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/