saranyaeu2987 edited a comment on issue #282:
URL: 
https://github.com/apache/camel-kafka-connector/issues/282#issuecomment-646876501


   > You need to instantiate the client and from the error it's clear that the 
client is not in the registry.
   > Any client instantiated should work. So it's definitely something in the 
way you are defining the client and configuring it.
   
   --> ok, How to check if that my custom S3 client is in registry or not ?
   
   This is how I have added - I have created a separate jar with one class 
**HEBS3Client** with following definition
   ```
   public class HEBS3Client implements S3Client{
       private static Logger log = LoggerFactory.getLogger(HEBS3Client.class);
       Region region = Region.US_EAST_1;
       S3Client s3;
   
       public static void main(String args[]){
           HEBS3Client hebs3Client = new HEBS3Client();
           hebs3Client.s3 = S3Client.builder() .region(hebs3Client.region) 
.credentialsProvider(WebIdentityTokenFileCredentialsProvider.create()).build();
   
       public String serviceName() {
           return "";
       }
       public void close() {
       }
   ```
   
   with config
   `camel.sink.endpoint.amazonS3Client: heb.dsol.fp.HEBS3Client`
    
   and added jar in docker container which have other camel files.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to