mina-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Reimann <ct...@dentrassi.de>
Subject Re: Are all MINA APIs thread unsafe except IoSession?
Date Mon, 01 Dec 2014 07:02:30 GMT

On Dec 1, 2014 6:53 AM, Emmanuel L├ęcharny <elecharny@gmail.com> wrote:

> Now, there is one tricky part : you may have two threads processing one 
> single session *of* you have added an Executor filter in your chain. In 
> this case, you have to take care of the shared information for those 
> specific sessions. 
> Beside that, you should be safe. 

This is also a problem if your application writes to the IO session from different threads.
And a different thread is a thread which is not created by apache Mina. Including the main
application thread.


View raw message