--   IoAcceptor () can start multiple ports at the same time, each port can 
specify different handler and filer --   Confused for a long time, also looked 
at the source. Is can't find out how to implement each port can      
    specify different handler and filer 
-- Could you tell me how to achieve


--A NioSocketAcceptor can bind multiple InetSocketAddress () object, monitor 
multiple ports at the same   time, but these port public a filer and handler. 
But I want to every port, has its own filer and handler


        SocketAcceptor acceptor = new NioSocketAcceptor(); 
        acceptor.getFilterChain().addLast("codec",new ProtocolCodecFilter(new 
MyTextLineCodec()));
        LoggingFilter log = new LoggingFilter();
        log.setMessageReceivedLogLevel(LogLevel.INFO);
        acceptor.getFilterChain().addLast("logger", log);
        acceptor.setHandler(new MyServerHandle());
        List<InetSocketAddress> listPort = new ArrayList<InetSocketAddress>();
        listPort.add(new InetSocketAddress(8089));
        listPort.add(new InetSocketAddress(8999));
        acceptor.bind(listPort);



--Binding the 8089, 8999, their gm a handler and filer, I want to make 8090 
with his own definition of 
   filer, 8999 ObjectSerializationCodecFactory with mina, I don't want to 
create two NioSocketAcceptor

Reply via email to