lol Your welcome!

Personally I find that with mock and skip, you want to do this sparingly 
instead of skipping everything except the first endpoint as you’ve described. 
Instead I prefer to target certain endpoints so my regex looks something like 

(direct:abc.*|direct:def.*|jms:blah.*|http4:foo.*)

So this only skips those 4 endpoints and I can use the normal mock end point 
for everything else.

On 17 Feb 2015, at 9:18 pm, Chris Melikian <[email protected]> wrote:

> Cám ơn Anh Minh!
> 
> That was exactly my problem. Here's the solution that worked for me (after
> lots of trying!):-
> 
>       @Override
>       public String isMockEndpointsAndSkip() {
>               return "direct://(?!closeOpenOrders).*";
>       }
> 
> which translates to "mock and skip original endpoints for all direct
> endpoints whose id starts with closeOpenOrders".
> 
> Maybe worth adding an example like this in the Camel docs for others who
> face the same issue? It would show what's possible?
> 
> 
> 
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/isMockEndpointsAndSkip-documentation-unclear-tp5762798p5762832.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to