[
https://issues.apache.org/jira/browse/CAMEL-15176?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17227413#comment-17227413
]
Omar Al-Safi commented on CAMEL-15176:
--------------------------------------
Hey [~davsclaus],
I have a question in regards to this, as far as I understood any client
creation operations should be moved to {{doInit}} instead of {{doStart}} only
for static stuff as long that it does not create threads, runtime depending
operating ... etc, isn't? What if for example the client would create its own
threads to interact with the service, for example [EventHub
client|https://github.com/apache/camel/blob/4ea9e6c357371682b855d2d79655b41120331b7a/components/camel-azure-eventhubs/src/main/java/org/apache/camel/component/azure/eventhubs/EventHubsConsumer.java#L47],
I'd assume in this case we just leave it under {{doStart}}? Or at least create
the client in the {{doInit}} and start it under {{doStart}} ?
> Component - Use doInit for wiring instead of doStart (part 2)
> -------------------------------------------------------------
>
> Key: CAMEL-15176
> URL: https://issues.apache.org/jira/browse/CAMEL-15176
> Project: Camel
> Issue Type: Improvement
> Reporter: Claus Ibsen
> Priority: Major
> Fix For: 3.7.0
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)