I want to execute camel route only at startup and only once as an AWS lambda
function.
Cloudwatch logs say route started but it is not really executing or
performing intended operation.
Below is my route:
{code}
from(sftp://[email protected]?password=password&delete=true)
.to(aws-s3://myBucket?accessKey=XXX&secretKey=XXX&amazonS3Endpoint=s3.amazonaws.com®ion=us-west-2)
.log("downloading of file ${file:name} complete.").end();
{code}
Here it should read file from SFTP location and paste it to S3 bucket.
When I am executing lambda function it is saying that route is started
successfully but actually it is not doing anything (i.e. not putting any
file in S3 bucket). Lambda function is also not throwing any error, instead
operation is completed successfully.
When I am executing same route through Java standalone program, it is
executing perfectly well. i.e. it is picking file from SFTP location and
storing it in S3 bucket.
I want to confirm whether camel route can be executed as lambda function? I
hope, I am using right technology for right use case.
-----
Regards,
Arun Kumar (sharma_arun_se)
Expert SOA (Fuse ESB, Camel, ActiveMQ, OSGi) and RESTful Solution Architect,
Open Source Contributor.
linkedin: http://in.linkedin.com/in/aronkumar
twitter: https://twitter.com/#!/SharmaArunKumar
blog: http://techiesweek.blogspot.com/
Gtalk: [email protected]
--
View this message in context:
http://camel.465427.n5.nabble.com/Executing-camel-route-as-AWS-lambda-function-tp5784606.html
Sent from the Camel - Users mailing list archive at Nabble.com.