camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bilgin Ibryam <bibr...@gmail.com>
Subject Re: Reading more files from aws-S3 than expected
Date Sat, 23 Nov 2013 14:38:51 GMT
Have you tried to specify the prefix option?

HTH,


On Fri, Nov 22, 2013 at 12:49 PM, Jesper Olsen <jol@dr.dk> wrote:

> 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.
>



-- 
Bilgin Ibryam

Apache Camel & Apache OFBiz committer
Blog: ofbizian.com
Twitter: @bibryam <https://twitter.com/bibryam>

Author of Instant Apache Camel Message Routing
http://www.amazon.com/dp/1783283475

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message