Hi Johannens

You got the answer.  The correlation of message IDs is required.

Johannens Zillmann wrote:
> 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
> 
> 

-- 
Trustin Lee - Principal Software Engineer, JBoss, Red Hat
--
what we call human nature is actually human habit
--
http://gleamynode.net/

Attachment: signature.asc
Description: OpenPGP digital signature

  • synchronous messages Johannens Zillmann
    • Re: synchronous mes... 이희승 (Trustin Lee) <[EMAIL PROTECTED]>

Reply via email to