You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Eric Fenderbosch (JIRA)" <ji...@apache.org> on 2018/11/14 15:53:01 UTC

[jira] [Updated] (CAMEL-12936) camel-aws should find and use AmazonS3 bean in Spring Context

     [ https://issues.apache.org/jira/browse/CAMEL-12936?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Fenderbosch updated CAMEL-12936:
-------------------------------------
    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.

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


> camel-aws should find and use AmazonS3 bean in Spring Context
> -------------------------------------------------------------
>
>                 Key: CAMEL-12936
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12936
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-aws
>    Affects Versions: 2.22.1
>         Environment: Spring Boot 2.0.6
> AWS SDK 1.11.4xx
>  
>            Reporter: Eric Fenderbosch
>            Priority: Minor
>
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)