mina-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@gmail.com>
Subject Re: sharing sessionstata between encoder and decoder
Date Thu, 11 Sep 2008 20:00:03 GMT
jan de vries wrote:
> Well, it was just an example to make my point clear. My SessionState 
> contaans a lot more then that.
> For the decoder you are right, but the encoder CharsetEncoder can give 
> problems since
> Session.write might be called simultaneously if i understand the 
> documentation correctly.
> But actually its not about the encoder or decoder, but about the other 
> things in my SessionState class ;).
> ...
> But please note that performing more than one write(Object) calls at 
> the same time will cause the [..]  is executed
> simnutaneously, and therefore you have to make sure the IoFilter 
> implementations you're using are thread-safe, too.
If you are using an OrderedThreadPoolExecutor, then you have the 
guarantee that there will be no problem with the event processing :


cordialement, regards,
Emmanuel L├ęcharny

View raw message