[
https://issues.apache.org/jira/browse/CAMEL-15176?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17227445#comment-17227445
]
Claus Ibsen commented on CAMEL-15176:
-------------------------------------
Yes exactly.
init is most useable for dependecy injection, loading resources from classpath,
creating basic objects etc.
And yes if a client as you talk about have a start method that creates threads,
then that should be in doStart.
But creating the client via new XXX may sometimes be possible in init, unless
it starts threads etc in its constrcutor. So a good thing is to look inside the
source of the client what it does to be sure.
> 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)