Add an ability to compress/inflate messages using a zip marshaller ------------------------------------------------------------------
Key: CAMEL-1133 URL: https://issues.apache.org/activemq/browse/CAMEL-1133 Project: Apache Camel Issue Type: New Feature Reporter: Ashwin Karpe At the moment there is no ability to compress and uncompress messages in a Message Exchange as they are sent/received on a Camel route. The benefits of having this feature are the following: a> ability to reduce the size of messages are they are sent in a flow to different remote destinations, b> ability to decompress messages just prior to being consumed at the endpoint. The way it would work is as follows: Message Deflater: (example below) -------------------------------------------------- context.addRoutes(new RouteBuilder() { public void configure() { from("direct:start").marshal().zip(Deflater.BEST_COMPRESSION).process(new ZippedMessageProcessor()); } }); Message Inflater: (example below) ------------------------------------------------ context.addRoutes(new RouteBuilder() { public void configure() { from("direct:start").marshal().zip().unmarshal().zip().process(new UnZippedMessageProcessor()); } }); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.