Hi,

i have some assumptions about synchronous messaging in mina, and i want to assure that they are not wrong...
Mina does allow following (which allows 1 question - 1 answer pattern):

WriteFuture write = _session.write(text);
ReadFuture read = _session.read();
read.await();
read.getMessage();

But this works only for synchronous use. If this code-block or the session is used asynchronous, written and read messages don't necessarily belong to each other. If i want to use one connection/session asynchronous but want for each written message (question) exactly one answer, i have to invent an own mechanism dealing with messageIds, right ?

Johannes

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
101tec GmbH
Halle (Saale), Saxony-Anhalt, Germany
http://www.101tec.com

Reply via email to