Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.15.0
-
None
-
Unknown
Description
Currently camel-ref endpoint always adds the underlying endpoint like
getCamelContext().addEndpoint(getEndpoint().getEndpointUri(), endpoint);
We should check if it exists or not firstly like
if (getCamelContext().getEndpoint(getEndpoint().getEndpointUri()) == null)
Because if we re-add the same endpoint, this endpoint actually will be stopped