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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.1.0, 3.4.1
    • 3.5.0
    • camel-aws2
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: