how to run a consumer route once?

2015-01-19 Thread aidatechinc
I've used timer,  but time manage not to work with a consumer endpoint. The
header/body end up being empty.






that doesn't work  since I am trying to consumer after the timer.

thanks



--
View this message in context: 
http://camel.465427.n5.nabble.com/how-to-run-a-consumer-route-once-tp5761932.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: how to run a consumer route once?

2015-01-19 Thread Claus Straube
The file component has a build in timer. You don't need the first line.




I'm not sure if you really want to read only once from the file system. If
yes, you should probably think about an other solution...

Best regards - Claus


On Tue, Jan 20, 2015 at 6:16 AM, aidatechinc  wrote:

> I've used timer,  but time manage not to work with a consumer endpoint. The
> header/body end up being empty.
>
>
> 
> 
> 
>
> that doesn't work  since I am trying to consumer after the timer.
>
> thanks
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/how-to-run-a-consumer-route-once-tp5761932.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>


Re: how to run a consumer route once?

2015-01-20 Thread aidatechinc
thank you. my example was using a file, I am aware of the polling stratregy
for a file component.  The problem is I am trying to solve is grab once file
per user request from AWS-S3 and put it in the system.  I want it to run
once, without deleting the file on AWS.





--
View this message in context: 
http://camel.465427.n5.nabble.com/how-to-run-a-consumer-route-once-tp5761932p5761946.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: how to run a consumer route once?

2015-01-20 Thread Jakub Korab
Try using pollEnrich(...) to grab the file from S3.

http://camel.apache.org/content-enricher.html

Jakub

On 20/01/15 15:03, aidatechinc wrote:
> thank you. my example was using a file, I am aware of the polling stratregy
> for a file component.  The problem is I am trying to solve is grab once file
> per user request from AWS-S3 and put it in the system.  I want it to run
> once, without deleting the file on AWS.
>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/how-to-run-a-consumer-route-once-tp5761932p5761946.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



Re: how to run a consumer route once?

2015-01-21 Thread aidatechinc
yep that did it. thank you



--
View this message in context: 
http://camel.465427.n5.nabble.com/how-to-run-a-consumer-route-once-tp5761932p5762003.html
Sent from the Camel - Users mailing list archive at Nabble.com.