You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "James Netherton (Jira)" <ji...@apache.org> on 2023/06/09 12:50:00 UTC
[jira] [Created] (CAMEL-19432) camel-azure-eventhubs: Providing a custom EventHubProducerAsyncClient has no effect
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)