mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sangjin Lee" <sjl...@gmail.com>
Subject Re: Usage of SimpleIoProcessorPool in MINA 2.0
Date Wed, 13 Feb 2008 15:10:53 GMT
Matthew,

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

Thanks,
Sangjin


On Feb 12, 2008 10:39 PM, Matthew Phillips <matt@mattp.name> 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<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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message