On Tue, Mar 18, 2008 at 7:46 AM, Steven <[EMAIL PROTECTED]> wrote: > Is it proper to create an class that extends the ExecutorFilter class and do > the db works in this class' messageReceived and messageSent methods?
No, you would do the actual work in your IoHandler. The ExecutorFilter you would insert directly into the filter chain. You can have a look at how we use it in FtpServer which is kind of similar as some data transfers can take a lot of time: http://svn.apache.org/repos/asf/mina/ftpserver/trunk/core/src/main/java/org/apache/ftpserver/listener/mina/MinaListener.java /niklas
