There's also an object serialization codec:

http://directory.apache.org/subprojects/network/xref/org/apache/mina/filter/codec/serialization/package-frame.html

and here's sumup protocol example:

http://directory.apache.org/subprojects/network/xref-examples/org/apache/mina/examples/sumup/codec/package-summary.html

HTH,
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
PGP Key ID: 0x854B996C