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

AWS* - Support for more than 1 client in the registry

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.0, 3.4.1
    • Fix Version/s: 3.5.0
    • Component/s: camel-aws-s3
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      The `amazonS3Client` query parameter takes the key of the bean in the registry as argument, however that key is not used.

       

      Actually, today the component supports ONLY having 1 bean of type AmazonS3 in the registry, the following method in the S3Component shows it : 

       

       

      private void checkAndSetRegistryClient(S3Configuration configuration) {
          Set<AmazonS3> clients = this.getCamelContext().getRegistry().findByType(AmazonS3.class);
          if (clients.size() == 1) {
              configuration.setAmazonS3Client((AmazonS3)clients.stream().findFirst().get());
          }
      
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                acosentino Andrea Cosentino
                Reporter:
                ikwattro Christophe Willemsen
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: