[
https://issues.apache.org/jira/browse/CAMEL-12268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16417102#comment-16417102
]
Viachaslau Tsikhanovich commented on CAMEL-12268:
-------------------------------------------------
aws-sqs components reuse single amazonSQSClient. For example
[documentation|http://camel.apache.org/aws-sqs.html] describes how to configure
SQS endpoint to pick up amazonSQSClient from context:
{quote}from("aws-sqs://MyQueue?amazonSQSClient=#client&delay=5000&maxMessagesPerPoll=5")
.to("mock:result");
{quote}
After changes introduced in the current ticket stop of the one SQS endpoint
shuts down the amazonSQSClient (and closes connection pool it contains) so
amazonSQSClient becomes closed and cannot be used by endpoints or beans. Seems
that call shutdown on the client is not necessary because client is shared.
> Camel-AWS: Lets call shutdown on the clients while stopping endpoints
> ---------------------------------------------------------------------
>
> Key: CAMEL-12268
> URL: https://issues.apache.org/jira/browse/CAMEL-12268
> Project: Camel
> Issue Type: Improvement
> Components: camel-aws
> Reporter: Andrea Cosentino
> Assignee: Andrea Cosentino
> Priority: Major
> Fix For: 2.21.0
>
>
> It would be great to call shutdown on the client while stopping the endpoint.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)