On 7/27/06, peter royal <[EMAIL PROTECTED]> wrote:

On Jul 25, 2006, at 9:54 PM, Hanson Char wrote:
> From the Mina FAQ, my understanding is that storing/retrieving
> resources
> from a session is thread-safe in the IoHandler, as long as the
> resources are
> not shared among sessions.

And the ThreadPoolFilter is used, yes.

> Is this also true for ProtocolDecoder ?  That is, is it true that
> storing/retrieving resources from a session is thread-safe in the
> ProtocolDecoder, as long as the resources are not shared among
> sessions ?

As long as the ProtocolCodecFilter is in the chain after the
ThreadPoolFilter (which would be the default), you'll be fine as well.


I think it should always be thread-safe even if we didn't use
ExecutorPoolFilter (formerly ThreadPoolFilter) unless you inserted a strange
filter that alters the thread model.  Am I missing something?

Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6

Reply via email to