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
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
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