In any case, I would gather all the elements inorder to send only one message instead of many. It's more efficient.
On Mon, Sep 14, 2009 at 7:28 AM, Christopher Popp <[email protected]> wrote: > > > >>> 2)Does Mina keeps the order of the messages sending when replies are >>> dispatched? In another words: if I do multiple IoSession.write(), do I >>> receive the messageSent() in the same order I do the write ? >> >>I am really not sure on this, but I think it will, unless you have a >>Executor down in the Chain. >> >>Anyone? > > > For each session, the order of messages being received should be the same as > they are sent. The default behavior of the ExecutorFilter is to provide an > OrderedThreadPoolExecutor, which will continue to maintain the order of > events per session. Setting up the ExecutorFilter with an > UnorderedThreadPoolExecutor would result in things possibly getting out of > order. > > Chris Popp > > > -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com
