I believe there was an original request on this post for someone to please show how to use the ZipSplitter with Spring DSL. But I have not seen this anywhere and I have not been able to get it to work. Here is a snippet of my attempt:
<bean id="myZipSplitter" class="org.apache.camel.dataformat.zipfile.ZipSplitter"/> <camelContext xmlns="http://camel.apache.org/schema/spring"> <route> <from uri="file:src/data?noop=true"/> <choice> <when> <simple>${file:name.ext} == 'max'</simple> <split streaming="true"> <ref>myZipSplitter</ref> <choice> <when> <simple>${header.ZipFileName.ext} == 'pdz'</simple> <log loggingLevel="TRACE" message="Processing PDZ: ${header.ZipFileName.ext}"/> <to uri="file:target/data/xml"/> </when> <otherwise> <log message="Ignoring found zip entry : ${header.ZipFileName.ext}"/> </otherwise> </choice> </split> . . . Could someone please post a correct example of usage of the ZipFile Dataformat (using the ZipSplitter expression) or a statement that it cannot be used with Spring? -- View this message in context: http://camel.465427.n5.nabble.com/zip-file-best-practices-tp5713437p5741806.html Sent from the Camel - Users mailing list archive at Nabble.com.