If you are using a NioSocketAcceptor, then check out
org.apache.mina.transport.socket.nio.NioSession or another option is to
create a class that implements the
org.apache.mina.handler.multiton.SingleSessionIoHandlerFactory.

For an example, take a look at
org.apache.mina.transport.socket.nio.NioSocketSession.



On Mon, Jul 21, 2008 at 2:45 AM, Geert Schuring <[EMAIL PROTECTED]> wrote:

> Looking at at classes extending AbstractIoSession doesn't clear anything up
> for me... am i missing something here?
>
> My question was: How do i register a SingleSessionIoHandler with the
> acceptor?
>
> --------- Original Message --------
> From: Mark Webb <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>, Geert Schuring
> <[EMAIL PROTECTED]>
> Subject: Re: How to use a SingleSessionIoHandler?
> Date: 21/07/08 04:00
>
> > Depending on what type of service you are writing, take a look at classes
> extending AbstractIoSession.On Thu, Jul 17, 2008 at 11:19 AM, Geert
> Schuring
> &lt;[EMAIL PROTECTED]&gt; wrote:
> > Hey all,
> >
> > Im writing an IoHandler extending SingleSessionIoHandlerAdapter (mina
> > 2.0.0-M2). When doing so Eclipse doesn&#39;t allow me to add a
> no-argument
> > constructor saying: &quot;Implicit super constructor
> > SingleSessionIoHandlerAdapter() is undefined. Must explicitly invoke
> another
> > constructor&quot;
> > So i end up adding a Constructor that has an IoSession argument. Great
> and
> > all, of course, but how do i add this handler to the acceptor?
> >
> > The acceptor has no method to add a SingleSessionIoHandler.
> >
> > Geert Schuring
> > The Netherlands.
> >
> > ________________________________________________
> > Message sent using UebiMiau 2.7.10
> >
> >
> >
> >
>
> ________________________________________________
> Message sent using UebiMiau 2.7.10
>
>
>

Reply via email to