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
Attachments
Issue Links
- relates to
-
CAMEL-21493 camel-ref: should use CamelContext.hasEndpoint but not CamelContext.getEndpoint to check existence of an endpoint
- Resolved
- links to