0
votes

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.

1

1 Answers

0
votes

As you can see in Apache Mina Acceptor service can be stopped and waiting for it using acceptor.dispose( true ). Also you can use isDisposing() method to verify that.