Hi All,
I'm trying to make a camel-mina2 TCP endpoint which should only dump that
bytes are received by the socket.

With UDP this is easy as "For UDP if no codec is specified the default uses
a basic ByteBuffer based codec."

On TCP I have some limitations, textline don't works as my consumer don't
sends endlines.
Could you suggest me how to make or use a simple codec that allow me to do
this in TCP?
It is enough for me to sysout the number of bytes of each TCP receive...

I've seen that the custom codec need to be registered in SimpleRegistry,
but I've found no examples with real codecs and I don't know what to use.
Do mina2 component already provides some codec I can use, or should I write
a codec by myself? Or should I use camel-netty?

Thank you!
Cristiano

P.S. Sorry I'm a newbie of camel-mina2, it is the second time I use this
component but with UDP was much easier, I just need some hints for taking
the right direction an then I'll figure out what to do by myself

Reply via email to