Hi, I use the SM 3.2, OK,  when I remove a endpoint and then add a same name
endpoint in a SU(for requirement, not for borings). I met the error

"More than one endpoint found in the SU for key:... "


I find the code in the org.apache.servicemix.common.ServiceUnit
...
    public void removeEndpoint(Endpoint endpoint) throws DeploymentException
{
        if (this.endpoints.remove(endpoint) != null) {
            throw new DeploymentException("Endpoint not found in the SU for
key: " + EndpointSupport.getKey(endpoint));
        }
...
    }
...

the endpoints is defined by:
protected Map<String, Endpoint> endpoints = new LinkedHashMap<String,
Endpoint>();

yes, this one:
 "this.endpoints.remove(endpoint) " equals null. so the
"this.endpoints.remove(endpoint) != null" is not useful. 

make sense? 
Thanks.

-- 
View this message in context: 
http://www.nabble.com/Could-ServiceUnit-could-remove-Endpoint-really--tp16823808p16823808.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to