Hi, I am able to register multiple encoders/decoders.
my server is expected to recieve different type of messages. I have implemented deocdable() method of my each decoder according to message type of the message. so u wont need any IF ELSE structure in your deocder. Regards, Yogs mat-29 wrote: > > What i meants was needed to add more "IF else" into message decoder(NOT > good > design pattern)? > > 2007/4/22, mat <[EMAIL PROTECTED]>: >> >> Actually i had same questions, I am implementing a Gateway proxy server >> which should understand 2 different protocols. Should I use IF ELSE >> method >> in my own message decoder class? However, I don't think it is a good >> approach since it prevents adding new protocols. Any good idea? >> >> 2007/4/17, Trustin Lee <[EMAIL PROTECTED]>: >> > >> > Hi Yogs, >> > >> > On 4/12/07, Yogs <[EMAIL PROTECTED]> wrote: >> > > >> > > Hi, >> > > >> > > Can I register more than one Encoders and Decoders to >> > ProtocolCodecFactory >> > > which is extended from mina's DemuxingProtocolCodecFactory? >> > > Or we can have only one decoder and encoder registered as >> demonstrated >> > in >> > > SumUp example? >> > > How can I configure multiple decoders in MINA? >> > >> > Could you explain the protocol you want to implement more in detail? >> > Do you just want to merge two codecs into one, or to implement >> > multi-layered protocol? >> > >> > Trustin >> > -- >> > what we call human nature is actually human habit >> > -- >> > http://gleamynode.net/ >> > -- >> > PGP Key ID: 0x0255ECA6 >> > >> >> > > -- View this message in context: http://www.nabble.com/How-can-I-configure-multiple-decoders-in-MINA--tf3561571.html#a10175213 Sent from the mina dev mailing list archive at Nabble.com.
