Ok, thanks I got it working now! The issue was in my missunderstanding that I needed to unmarshall the zip file into a zipFile before calling the split.
On 24 Jan 2014, at 22:00, alexey-s [via Camel] <ml-node+s465427n574646...@n5.nabble.com> wrote: > I never used to separate files in zip archive. > I use a component splitter to read nested XML files. > > Example use in spring DSL: > http://stackoverflow.com/questions/20294005/using-zipsplitter-in-apache-camel-spring-dsl > > Copy/paste and add comments > > <bean id="zipSplitter" > class="org.apache.camel.dataformat.zipfile.ZipSplitter" /> > ... > <split streaming="true" parallelProcessing="true"> > <ref>zipSplitter</ref> > <!-- Message body is ZipInputStreamWrapper.class extends > BufferedInputStream --> > <!-- Header CamelFileName = include_file_name --> > <!-- Header zipFileName = include_file_name --> > <convertBodyTo type="java.lang.String" /> > <to uri="file:foo" /> > </split> > > > > > Aleksey > > If you reply to this email, your message will be added to the discussion > below: > http://camel.465427.n5.nabble.com/zip-file-best-practices-tp5713437p5746463.html > To unsubscribe from zip file best practices, click here. > NAML SampleZipSplitter.xml (1K) <http://camel.465427.n5.nabble.com/attachment/5746466/0/SampleZipSplitter.xml> -- View this message in context: http://camel.465427.n5.nabble.com/zip-file-best-practices-tp5713437p5746466.html Sent from the Camel - Users mailing list archive at Nabble.com.