Hi, You might want to look into "org.apache.mina.handler.chain.IoHandlerChain", if each IoHandler will handle one type of message/protocol and there is no overlap among different IoHandlers, you probably can simply build a IoHandlerChain to handle all the protocols, this might not be an optimal solution, but it is not difficult to implement.
My two cents, Jian On 9/20/07, Gary Helmling <[EMAIL PROTECTED]> wrote: > > > Mark Webb wrote: > > > > I am interested in having one IoAcceptor listen on multiple ports. This > > acceptor will have one Selector and based on the incoming connection/data, > > the proper handler will be triggered. > > This would be pretty useful for me as well. I have a server that will be > handling essentially the same data over 2 different protocols on 2 different > ports. For each protocol the handling would be slightly different, so a > separate IoHandlerAdapter on each port would be useful. > > This capability seemed to be present in the 1.1.x releases with the: > SocketAcceptor.bind(SocketAddress, IoHandler, IoServiceConfig) > > method (don't know if it worked the way I expected with multiple calls). > Was this causing problems that were fixed with the current restructuring in > the trunk? > > Thanks, > Gary > -- > View this message in context: > http://www.nabble.com/multiple-handlers-per-IoService-tf4481513s16868.html#a12799299 > Sent from the Apache MINA Support Forum mailing list archive at Nabble.com. > >
