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/13 16:45:00 UTC

[jira] [Resolved] (CAMEL-19432) camel-azure-eventhubs: Providing a custom EventHubProducerAsyncClient has no effect

     [ https://issues.apache.org/jira/browse/CAMEL-19432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Netherton resolved CAMEL-19432.
-------------------------------------
    Resolution: Fixed

> 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
>            Assignee: James Netherton
>            Priority: Minor
>             Fix For: 3.20.6, 3.21.0, 4.0-RC1, 4.0
>
>
> 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)