Hello David, Wednesday, April 22, 2009, 1:00:38 AM, you wrote:
D> No advice? :-( There is nothing wrong with using a thread pool executor before the codec in the chain. It would depend on your application. We found that in our case the performance is much better when executor is first since all the operations are performed in parallel just after sessionCreated and are not limited to the IoProcessor threads. You can see that Apache FtpServer project based on MINA is using this approach: http://www.google.com/codesearch/p?hl=en#-Df7BeIx838/trunk/core/src/main/java/org/apache/ftpserver/listener/nio/NioListener.java&l=149 (notice that threadPool is added before codec for the acceptor). -- Best regards, Serge
