Re: Usage of SimpleIoProcessorPool in MINA 2.0

2008-02-13 Thread Sangjin Lee
Matthew,

Please see https://issues.apache.org/jira/browse/DIRMINA-528.

Thanks,
Sangjin


On Feb 12, 2008 10:39 PM, Matthew Phillips <[EMAIL PROTECTED]> wrote:

> 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
> (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.
>


Usage of SimpleIoProcessorPool in MINA 2.0

2008-02-13 Thread Matthew Phillips

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
(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.