[
https://issues.apache.org/jira/browse/CAMEL-13460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16826883#comment-16826883
]
Claus Ibsen commented on CAMEL-13460:
-------------------------------------
Help is welcome
1)
Add the code above to DefaultEndpoint
2)
Remove the isSingleton method from all the component endpoints where it returns
true. I think its only camel-ftp and maybe a few others that return false.
> camel3 - DefaultEndpoint - Should be singleton by default
> ---------------------------------------------------------
>
> Key: CAMEL-13460
> URL: https://issues.apache.org/jira/browse/CAMEL-13460
> Project: Camel
> Issue Type: Improvement
> Reporter: Claus Ibsen
> Priority: Major
> Fix For: 3.0.0, 3.0.0-M3
>
>
> We should
> {code}
> @Override
> public boolean isSingleton() {
> // lets be singleton by default as otherwise end-users may mistakenly
> write components
> // which are not singleton. Only in very rare situations would you
> need to be non-singletons.
> return true;
> }
> {code}
> in DefaultEndpoint, and then remove it from all the components that are also
> singleton. I think its possible only camel-ftp that may not be.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)