[ 
https://issues.apache.org/jira/browse/CAMEL-18912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17676561#comment-17676561
 ] 

Andrea Cosentino commented on CAMEL-18912:
------------------------------------------

I think this would be a problem in all the components related to AWS. We 
thought about client from configuration, client built from parameters and if 
not we create the client with default credentials provider. Silly me, didn't 
think about the autowired ones. Sorry.

> Sqs2ConsumerHealthCheck is broken when using injected client
> ------------------------------------------------------------
>
>                 Key: CAMEL-18912
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18912
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-aws2
>    Affects Versions: 3.19.0, 3.20.0, 3.20.1
>            Reporter: Simon Rasmussen
>            Priority: Major
>             Fix For: 3.20.2, 3.21.0, 4.0
>
>
> Cased by CAMEL-18466 where a new health check is introduced for the SQS 
> component.
> The component creates it own client, but does so incorrectly as it fails to 
> detect if a client is injected.
> Also, the client is created for every invocation of the health check which is 
> not very efficient, a better solution would be to pass in the SqsClient to 
> the health check itself.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to