I have written a tcp server in Apache Mina.The server listens to a port n do the process. I have deployed this in jboss server. But now i am not able to stop the server.
I have done the following things for the stop program:
acceptor.dispose();
acceptor.unbind();
acceptor.setCloseOnDeactivation(true);
But the port is still active and the server still runs.
Can anybody help me in understanding how to stop the server.