mat wrote:
> Can someone tell me how your business logic class interacts with
> IoHandlerAdapter? By passing the references to each other? Somehow, I feel a
> little bit weird to do so. Any better solution?
>
>   
In my app my IoHandler implementation gets a reference (through an
interface of course) to a business service. Some of the service methods
are asynchronous which means that the service needs to notify the
IoHandler when the operation has finished.  In those cases I use a
callback interface which decouples the service from the IoHandler. The
service is completely independent from MINA.

HTH

-- 
Niklas Therning
www.spamdrain.net

Reply via email to