Hi all,

I'm porting from MINA 1.1 to 2.0 and trying to convert this:

  SocketConnector connector =
    new SocketConnector (processors, executor);

to the 2.0 equivalent. Since there's no constructor that takes a processor
count and an executor, I looked at SimpleIoProcessorPool, and tried:

  SocketConnector connector =
    new NioSocketConnector
      (new SimpleIoProcessorPool<NioSession>
        (NioProcessor.class, executor, processors));

This is what's recommended in the javadoc for SimpleIoProcessorPool, but
since NioSession isn't public, it won't compile. What I really want to be able to do is share an Executor across several services, not have it managed
by MINA.

Matthew.

Reply via email to