It is possible to have a daemon thread one for reading and one form writing, and this daemon thread is startup when the session is open.
Another Worker Thread will be startup at the Application Startup. His jobs is to process all the transactions posted on the reading LinkedBlockingQueue, process the transaction and place the response into the writing LinkedBlockingQueue. This two LinkedBlockingQueue will be share between all sessions. The Reading daemon thread will write the information to a reading LinkedBlockingQueue. The Writing daemon thread will read the information from the writing LinkedBlockingQueue. Both operation will be operating in parallel. Any suggestion how it can be accomplished with the mina. proyal wrote: > > On May 2, 2007, at 7:44 AM, angel figueroa wrote: >> In order to send information to the client. the client must sent a >> messages. >> How you can change it in order to write to the session separately >> from the >> messageReceived. This is function more like synchronous >> communication. >> >> What i would like to accomplish is received messages and at the >> time time >> writing message to the session? > > You can call IoSession.write() anytime after the session is connected > (such as in IoHandler.sessionOpened) > > -pete > > > > -- > [EMAIL PROTECTED] - http://fotap.org/~osi > > > > > > -- View this message in context: http://www.nabble.com/Simultaneous-reading-and-writing-using-mina-tf3678684.html#a10287080 Sent from the mina dev mailing list archive at Nabble.com.
