[
https://issues.apache.org/jira/browse/CAMEL-4561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13131433#comment-13131433
]
Claus Ibsen commented on CAMEL-4561:
------------------------------------
When you do a .clone() then it copies the List as a reference. So you could
potentially make changes in one instance, that reflects the parent instance.
So when you clone then you need to do a deep-clone of the List etc. So its
fully independent. See for example
https://svn.apache.org/repos/asf/camel/trunk/components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConfiguration.java
> CxfComponent should create a new CxfEndpoint instance if the instance is
> lookup from configuration registry
> -----------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-4561
> URL: https://issues.apache.org/jira/browse/CAMEL-4561
> Project: Camel
> Issue Type: Bug
> Reporter: Willem Jiang
>
> CAMEL-4503 shows the bug, when we have uri parameters which can override the
> configuration of cxfEndpoint, the instance of cxfEndpoint from the
> configuration file could be changed with the uri parameters if the
> CxfComponnet doesn't return a new instance of the cxfEndpoint.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira