Try jdbc:.* 
Note the full stop.

If you look at the javadoc for isMockEndpointsAndSkip function, it refers you 
to EndpointHelper.matchEndpoint which has the following

The match rules are applied in this order:

        • exact match, returns true
        • wildcard match (pattern ends with a * and the uri starts with the 
pattern), returns true
        • regular expression match, returns true
        • otherwise returns false

Having said that, the string you put in should’ve worked for the wildcard 
matching as described in the javadoc. I’ve always just stuck to regex since I’m 
very familiar with it and it hasn’t failed on me yet.

> On 27 Sep 2016, at 7:08 PM, dermoritz <tantea...@hotmail.com> wrote:
> 
> I found a solution. First overriding "isMockEndpointsAndSkip()" isn't working
> at all (using every pattern including "jdbc:*"). Implementing an
> AdviceRoutBuilder by my self is working:
> 
> 
> 
> But only by using weaveById. The interceptSend... is not working! Using
> interceptSend... is showing a routedefinition with still both "to" in place:
> 
> 
> but the mock will never see any exchange (so the intercepting isn't working
> to)
> 
> 
> 
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-isMockEndpointsAndSkip-doesn-t-skip-jdbc-endpoint-tp5788065p5788099.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to