Hi Claus,
I'm already using a wild card to try and perform the match. The issue
appears to be with using the adviceWith method to setup the
interceptSendToEndpoint call in my unit test.
This works perfectly when the endpoint in the route I'm testing is not
configured via spring properties.
Here is what I'm doing in the unit test to setup the interceptor:
RouteDefinition myRoute =
context.getRouteDefinition("myRoute");
myRoute.adviceWith(new RouteBuilder()
{
@Override
public void configure() throws Exception
{
interceptSendToEndpoint("http*")
.skipSendToOriginalEndpoint()
.to(mockWsEndpoint);
}
});
Thanks,
-john
--
View this message in context:
http://camel.465427.n5.nabble.com/interceptSendToEndpoint-with-dynamic-endpoint-tp3301978p3302930.html
Sent from the Camel - Users mailing list archive at Nabble.com.