In the class CamelTemplate shouldn't this:

public E send(String endpointUri, E exchange) {
        Endpoint endpoint = resolveMandatoryEndpoint(endpointUri);
        send(endpoint, exchange);
        return exchange;
    }

be:

public E send(String endpointUri, E exchange) {
        Endpoint endpoint = resolveMandatoryEndpoint(endpointUri);
        E retExchange send(endpoint, exchange);
        return retExchange;
}

???

Martin

Reply via email to