You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/07/01 13:16:25 UTC

[GitHub] [camel-quarkus] gus-maurizio edited a comment on issue #1431: Question regarding AWS Credentials without XML beans

gus-maurizio edited a comment on issue #1431:
URL: https://github.com/apache/camel-quarkus/issues/1431#issuecomment-652407641


   Thanks! I added your code and I get the following messages:
   
   ```
   Caused by: org.apache.camel.PropertyBindingException: Error binding property (amazonS3Client=#s3Client) with name: amazonS3Client on bean: aws-s3://c7n.phoenix.cloudx.api.us-east-1?amazonS3Client=%23s3Client with value: #s3Client
   ...
   Caused by: org.apache.camel.NoSuchBeanException: No bean could be found in the registry for: s3Client of type: com.amazonaws.services.s3.AmazonS3
   ```
   
   Below are the pieces of code:
   
   ```java
       @Override
       public void configure() {
       	
           from("aws-s3://{{camel.bucket}}?amazonS3Client=#s3Client")
           .routeId("s3read")
           .streamCaching()
           .to("log:s3?level=INFO&showAll=true");
       }
   ```
   
   ```java
   package com.example;
   
   import javax.enterprise.context.ApplicationScoped;
   import javax.ws.rs.Produces;
   
   import com.amazonaws.services.s3.AmazonS3;
   import com.amazonaws.services.s3.AmazonS3ClientBuilder;
   
   @ApplicationScoped
   public class AWSCustomizer {
       @Produces
       public static AmazonS3 s3Client() {
           return AmazonS3ClientBuilder
               .standard()
               .build();
       }
   }
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org