camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John <John.Fans...@ateb.com>
Subject Re: interceptSendToEndpoint with dynamic endpoint
Date Tue, 14 Dec 2010 22:00:44 GMT

I've started testing with the camel 2.6 snapshot and believe I have found the
root of the issue.

The endpoint I am trying to test is an http endpoint. I included the user
name and password as query params in the URI.

Having a "&" in the URI prevents the InterceptSendToEndpoint from working
correctly. I recreated the issue with a static http endpoint like

.to("http:host/my_ws?arg1=ok&arg2=bad")

Out of curiosity I printed out the endpoints in my route after adding the
interceptor. On the URI without the "&", I only see one endpoint:

endPoint.uri = http://host/some_place/junk?arg1=ok
endPoint.class = class org.apache.camel.impl.InterceptSendToEndpoint

On the URI with the "&", I see two endpoints:

endPoint.uri = http://host/some_place/junk?arg2=bad&arg1=ok
endPoint.class = class org.apache.camel.impl.InterceptSendToEndpoint
endPoint.uri = http://host/some_place/junk?arg2=bad&arg1=ok
endPoint.class = class org.apache.camel.component.http.HttpEndpoint

-john

-- 
View this message in context: http://camel.465427.n5.nabble.com/interceptSendToEndpoint-with-dynamic-endpoint-tp3301978p3305364.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message