Hello Pat, On 9/4/07, Pat Chang - 1973 <[EMAIL PROTECTED]> wrote: > > > Can someone please answer my simple question. Would be much appreciated. > > > Pat Chang - 1973 wrote: > > > > Hi, > > > > We want to implement synchronous communication. > > > > After session.write(ProtocolObj); and session.join();, the thread waits > > until session is closed.
I guess you session.write(obj).join() since IoSession itself has no join() method ? The thread will wait until the message is written, not until session is closed. > > > I would prefer the session to be open, because on the server side, I am > > maintaining the data in the server session to accept further data. > > Secondly, I think it may not be the optimal way to close and open > > connections everytime either. session stays open after writing to it, until you close it (unless remote peer closes it) Maarten > > > Is there a way to achieve synchronized communication which does not > > involve reconnecting for every request so that we can reuse the data > saved > > int he server session as well? > > > > Regards > Pat > > > > -- > View this message in context: > http://www.nabble.com/Synchronous-communication-without-dropping-connection-tf4375713s16868.html#a12479878 > Sent from the Apache MINA Support Forum mailing list archive at Nabble.com > . > >
