Thank you very much, Fed, for the informaiton. I thought on similar lines but was not sure. I also agree with you on the suggestion, that the filter-chain is by far the best place to implement a codec.
I am using 9.0, and while I also assume that such fundamentals are not changed in any which way in 9.1, I will share my experience when I begin to use 9.1. Thanks again Nirmalya On 2/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I had this problem too, i think that the protocol handler was replaced with > simple IoHandler, and that there are a filter now that implements codecs. > I copied from the examples in the tutorial > http://directory.apache.org/subprojects/network/xref-examples/org/apache/mina/examples/sumup/ServerSessionHandler.html > and I saw that now this filter is used: > session.getFilterChain().addFirst( "protocolFilter", new > ProtocolCodecFilter( codec ) ); > > Please take a look around on org.apache.mina.filter.codec package that > provide useful already implemented codecs Filter. > > All these informations are valid for MINA 9.0, for other versions I don't > know, but I think they are still valid for 9.1 > > by Fed > > -- Nirmalya Sengupta Software Technologist "If you have built castles in the air, your work need not be lost. That is where they should be. Now put the foundation under them." --Henry David Thoreau
