I already checked in the fix for the problem you mentioned earlier.  Please
try to build the latest snapshot from our source code repository.

On 10/9/06, Hieu Phan Thanh <[EMAIL PROTECTED]> wrote:

Hello,



I'm using the MINA 0.8.3.

I could not stop my software due to could not stop listening on port:



Please see the code below:

=========================================================

public class DCServiceRegistry implements ServiceRegistry {



      private static Logger m_logger =
Logger.getLogger(DCServiceRegistry.class);



      protected final IoAcceptor socketIoAcceptor = new
SocketAcceptor();



      protected final ProtocolAcceptor socketProtocolAcceptor= new
IoProtocolAcceptor(


socketIoAcceptor);



      protected final IoThreadPoolFilter ioThreadPoolFilter = new
IoThreadPoolFilter();



      protected final ProtocolThreadPoolFilter  protocolThreadPoolFilter
= new ProtocolThreadPoolFilter();



      private final Set services = new HashSet();





/**

* Stop listening on an DataPort

*/

public synchronized void unbind(Service service) {

            ProtocolAcceptor acceptor = findProtocolAcceptor(service

                        .getTransportType());

            try {

                  String serviceString = service.toString();

                  m_logger.debug("Unbinding service: " + serviceString);

                  acceptor.unbind(service.getAddress());

                  services.remove(service);



                  m_logger.debug("Unbind service: " + serviceString + "
successfully.");

                  //

            } catch (Exception e) {

                  m_logger.error("Exception: ", e);

            }



            stopThreadPools();



      }

=========================================================



I think that this problem is inherited from the MINA 0.8.2.

If you have any idea about this issue, your advice is very appreciation.



Thanks & best regards,

Hieu Phan.







--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6

Reply via email to