Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12936

camel-aws should find and use AmazonS3 bean in Spring Context

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.22.1
    • Fix Version/s: 3.0.0-M3, 3.0.0
    • Component/s: camel-aws
    • Labels:
      None
    • Environment:

      Spring Boot 2.0.6

      AWS SDK 1.11.4xx

       

    • Estimated Complexity:
      Unknown

      Description

      When using aws-s3:bucket-name-goes-here  it is necessary to specify which bean in the Spring application context is used with the ?amazonS3Client=#amazonS3Client  query string parameter. If a single bean of this type exists in the Spring application context, then it shouldn't be necessary to specify the query string parameter.

      Furthermore, it should be looking for a bean of type AmazonS3 (interface) instead of AmazonS3Client (concrete class).

       I haven't looked at the other AWS Camel Components, but if they can also find a bean w/ the correct interface type in the Spring application context, then specifying the name as a query string parameter shouldn't be required.

      aws-kinesis should look for AmazonKinesis instead of AmazonKinesisClient, etc.

        Attachments

          Activity

            People

            • Assignee:
              acosentino Andrea Cosentino
              Reporter:
              efenderbosch Eric Fenderbosch
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: