I spent a few hours trying to get this to work in Spring DSL as well without
any luck. I tried debugging it and things looked correct but then somehow I
lost the context and the wrong data was coming out (i.e. the ZipSplitter was
called and did its job but the answer got lost somehow). I ran out of
time/patience and implemented a processor which performed the decompression
to a temporary file and passed on each file as a new exchange.

Here is what my xml looked like when it almost worked...

    <bean id="zipSplitter"
class="org.apache.camel.dataformat.zipfile.ZipSplitter"/>

    ...

     <unmarshal><zipFile usingIterator="true"/></unmarshal>
     <split streaming="true">
         <method ref="zipSplitter"/>
         <to uri="direct:csv"/>
      </split>



--
View this message in context: 
http://camel.465427.n5.nabble.com/zip-file-best-practices-tp5713437p5746412.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to