Re: sharing sessionstata between encoder and decoder

2008-09-11 Thread Emmanuel Lecharny
Hi, jan de vries wrote: Hello, I have a class which stores session specific data with session.setAttribute(SessionState.STATE_KEY, ss); But this contains data like (CharsetEncoder) which usage should not be interleaved by doDecode and encode. H. Don't you use a CharsetEncoder for sent

Re: sharing sessionstata between encoder and decoder

2008-09-11 Thread Emmanuel Lecharny
One strategy would be to synchronize the 'session' instance itself. 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

Re: sharing sessionstata between encoder and decoder

2008-09-11 Thread Emmanuel Lecharny
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