Zip DataFormatPage edited by Claus IbsenChanges (1)
Full ContentThe Zip Data Format is a message compression and de-compression format. Messages marshalled using Zip compression can be unmarshalled using Zip decompression just prior to being consumed at the endpoint. The compression capability is quite useful when you deal with large XML and Text based payloads. It facilitates more optimal use of network bandwidth while incurring a small cost in order to compress and decompress payloads at the endpoint.
Options
MarshalIn this example we marshal a regular text/XML payload to a compressed payload employing zip compression Deflater.BEST_COMPRESSION and send it an ActiveMQ queue called MY_QUEUE. from("direct:start").marshal().zip(Deflater.BEST_COMPRESSION).to("activemq:queue:MY_QUEUE"); Alternatively if you would like to use the default setting you could send it as from("direct:start").marshal().zip().to("activemq:queue:MY_QUEUE");
Change Notification Preferences
View Online
|
View Changes
|
Add Comment
|