On 3/13/06, peter royal <email@example.com> wrote:
t depends on the implementation of codec. Some codec might be stateless so they don't need any synchronization. Of course, a codec factory usually returns a new instance. It's a user's choice.No, regardless of codec implementation...http://svn.apache.org/viewcvs.cgi/directory/trunks/mina/core/src/main/java/org/apache/mina/filter/codec/ProtocolCodecFilter.java?rev=385254&view=markuplook in messageReceived.. it synchronizes on decoder, prior to doing decoder.decode. So if you have a ProtocolDecoder that is stateless that could be shared, you will not be able to decode multiple messages in parallel.