Using ZipSplitter in Apache Camel Spring DSL
apache-camel, java, spring, zip
Solution
You can use to hold the reference of expression just like this
<bean id="zipSplitter" class="org.apache.camel.dataformat.zipfile.ZipSplitter" />
...
<split streaming="true" parallelProcessing="true">
<ref>zipSplitter</ref>
<convertBodyTo type="java.lang.String" />
<to uri="file:foo" />
</split>
Problem
I would like to know how to use ZipSplitter from camel-zipfile in Spring DSL. I have been trying different approaches based on this post Unzip a file using Apache Camel UnZippedMessageProcessor but I am not able to figure out how to do in Spring. Also, I have not found any examples about this. I have something like this: ``` <bean id="zipSplitter" class="org.apache.camel.dataformat.zipfile.ZipSplitter" /> ... <split streaming="true" parallelProcessing="true"> <?????> <convertBodyTo type="java.lang.String" /> <to uri="file:foo" /> </split> ``` Thanks for the help!