Hi Guys,
I am trying to read Zipentries and process them separately. But using the file
component it seems the file is not correctly closed. I can see the file for a
few seconds in the .done and source directory. But then it disappears in the
.done folder and is back in the source directory :
<bean id="zipFileDataFormat"
class="org.apache.camel.dataformat.zipfile.ZipFileDataFormat">
<property name="usingIterator" value="true" />
</bean>
<route id="readZip">
<from
uri="file://C:/temp/?fileName=any.zip&moveFailed=.error&move=.done&delay=10000"
/>
<unmarshal ref="zipFileDataFormat" />
<!-- <split streaming="true"> -->
<!-- <simple>$simple{body}</simple> -->
<!-- <to
uri="log://OUT?level=INFO&showAll=true&multiline=true" /> -->
<!-- </split> -->
<to uri="log://OUT?level=INFO&showAll=true&multiline=true" />
</route>
If I remove the unmarshal the file component works fine (it moves processed
file to .done).
Any Ideas? I guess I could do a workaround by using noop=true and moving the
file myself, but it would be nice if it works as expected.
Best regards,
Sven