You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Steve Ulrich <st...@proemion.com> on 2008/11/04 17:20:47 UTC

AW: ExecutorFilter quick poll: How do you use it ? no---signature

> Emmanuel Lecharny [mailto:elecharny@gmail.com] wrote
>
> Hi guys,

Hi!

[snip]
>
> 1) Are you using the ExecutorFilter ?

Yes

> 2) Where in the chain do you put this filter ?

Behind the codec and (SLF4J) logging filters, just before the long running tasks and database stuff begins.

> 3) what if the IoHandler itself implement an executor instead of using
> a specific filter ?

We have Filters that will do database stuff, like logging things, checking for some preconditions, etc. So it wouldn't help very much.

> 4) Is this a problem if the chain is not protected when using an
> ExecutorFilter ?

The one method/event at a time per session should be ok for most cases. Maybe it would be good for beginners to have a single threaded chain.


regards

Steve