Hi Messi, On 7/1/07, Messi Chan <[EMAIL PROTECTED]> wrote:
Hi, all I have a doubt about DemuxingProtocolCodecFactory. I register two MessageEncoders one for class A, and the other for class B. When my server try to encode A first time, it work fine. But when it try to encode B next time, I got the exception(unexpected message types ....B). Is DemuxingProtocolCodecFactory just allowed register one MessageEncoder? I want someone's confirmation.
You can register more than one MessageEncoders, of course. The exception message 'unexpected message type' means that no encoder is registered for the message you attempted to write. Please make sure your MessageEncoder's getMessageTypes() method is implemented correctly. HTH, Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP Key ID: 0x0255ECA6
