James Netherton created CAMEL-19432:
---------------------------------------

             Summary: camel-azure-eventhubs: Providing a custom 
EventHubProducerAsyncClient has no effect
                 Key: CAMEL-19432
                 URL: https://issues.apache.org/jira/browse/CAMEL-19432
             Project: Camel
          Issue Type: Bug
          Components: camel-azure-eventhubs
            Reporter: James Netherton


The azure-eventhubs component has a {{producerAsyncClient}} option where you 
can pass a custom {{EventHubProducerAsyncClient}} instance to the component 
configuration.

Looking at the producer code, it seems that it gets ignored and a new 
{{EventHubProducerAsyncClient}} is created in {{doStart}}.

https://github.com/apache/camel/blob/main/components/camel-azure/camel-azure-eventhubs/src/main/java/org/apache/camel/component/azure/eventhubs/EventHubsProducer.java#L41

This was originally reported in the Camel Quarkus project:

https://github.com/apache/camel-quarkus/issues/4975 




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

Reply via email to