So you're saying that I cannot have any benefit in using an
OrderedThreadPoolExecutor if many threads write on a single session. Am
I right?
My question is, then, why it worked with MINA 1.x?
Moreover what I'm trying to do is see if I can improve application
performances by using many threads.
What do you think about it is it worth trying??
Another question please, and sorry for bothering you.
I noticed also that session created in server side isn't using a
embedded buffer so threads are reading directly from network buffers.
How can I add a buffer to a session client and server side?
Thanks,
Patrizio
Emmanuel Lecharny wrote:
If I've understood well, that impossibility is related to another session's
ByteBuffer,
but I'm using a single session.
I mean all my concurrent threads write on the same session object by means
of write() method.
Logically, one thread is associated with one session, that's the idea.
If you have more than one thread writing data in one single session,
then yes, you may have problems...