Tuesday, September 2, 2014

Decompressing a zip file using Apache Camel Java DSL

Sample route in Java DSL for decompressing a zip file using Apache Camel.
.log("Decompressing file ${file:name}.")
.split(new ZipSplitter())
.log("Decompressed file name is ${file:name}.")
Apache Camel is light weight but powerful open source integration framework which supports large variety of integration patterns and transport protocols.