See the Mina how to write your own codec. To use your custom codec with
camel-mina, you should register your codec in the Registry; for example, by
creating a bean in the Spring XML file. Then use the
codec option to specify
the bean ID of your codec. See HL7 that has a custom codec.