Hi

I have a camel route in Spring XML, that reads files from aws-s3.

Before starting the route, I placed a test file in S3:
//drbucket/CamelPickupTest/Test1.XML 

The route looks like this:

<route id="news-in-route">
        <from
uri="aws-s3://drbucket?accessKey=keyx&amp;secretKey=keyy&amp;deleteAfterRead=true&amp;maxMessagesPerPoll=5&amp;prefix=CamelPickupTest"
/>
        .
        .
</route>

The route returns 2 files.
  It returns '//drbucket/CamelPickupTest/Test1.XML' as expected
  AND it returns '//drbucket/CamelPickupTest' containing null in the
exchange body.
  
I can handle the null body in the route after reading it, so that is not the
problem.
The problem is that the 'folder name' CamelPickupTest (the prefix) is
deleted from S3.

Does anybody know a way to avoid reading '//drbucket/CamelPickupTest' as I
would like it to remain on S3
after I have read all the files it contains?

The camel version is 2.11.1

Kind regards
Jesper Olsen
Danmarks Radio



--
View this message in context: 
http://camel.465427.n5.nabble.com/Reading-more-files-from-aws-S3-than-expected-tp5743692.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to