Thanks. Trustin. 2007/4/30, Trustin Lee <[EMAIL PROTECTED]>:
On 4/27/07, mat <[EMAIL PROTECTED]> wrote: > So cache has to be global variable? > Following is my Encoder class. Where should I put the cache? You can use MessageEncoderFactory. :) If you specify MessageEncoder class in DemuxingProtocolCodecFactory.register, MINA will create a simple MessageEncoderFactory instance that creates a new instance of MEssageEncoder by calling a default constructor. If you need more control on how a MessageEncoder is created, you can implement your own MessageEncoderFactory, and register the factory. HTH, Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP Key ID: 0x0255ECA6
