camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashwin Karpe (JIRA)" <j...@apache.org>
Subject [jira] Created: (CAMEL-1133) Add an ability to compress/inflate messages using a zip marshaller
Date Mon, 01 Dec 2008 00:12:05 GMT
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.


Mime
View raw message