public final class Mina2Helper extends Object
public static void writeBody(org.apache.mina.core.session.IoSession session, Object body, org.apache.camel.Exchange exchange) throws org.apache.camel.CamelExchangeException
session
- the MINA sessionbody
- the body to write (send)exchange
- the exchangeorg.apache.camel.CamelExchangeException
- is thrown if the body could not be written for some reasons
(eg remote connection is closed etc.)Apache Camel