java-dsl.html error

2015-02-16 Thread James Green
At the bottom it talks about intercept() but doesn't use it. Confusing at least! And the link to InterceptorProcessor is a 404. James

Re: isMockEndpointsAndSkip documentation unclear

2015-02-16 Thread Minh Tran
I encountered this problem as well when I first used this. Because you used the star, it mocked and skipped every endpoint, including the start of your route. Just ensure the regex you provide doesn't match the start of your route. If you enable camel logging at info level, you'll see

Re: isMockEndpointsAndSkip documentation unclear

2015-02-16 Thread Chris Melikian
Thanks Claus, so how come:- @Override public String isMockEndpointsAndSkip() { return *; } gives me a failure but @Override public String isMockEndpointsAndSkip() { return direct:success; } works in my test? I'm

Re: camel jpa blueprint unit test

2015-02-16 Thread Achim Nierbeck
Hi, about the mocked service registry, I don't think so. It required some specialty that is actually only available with a OSGi framework bundle. Therefore I doubt it. regards, Achim 2015-02-16 11:38 GMT+01:00 Arnaud Deprez arnaudep...@gmail.com: Thx for your answer, I'll read your blog :-).

Re: camel jpa blueprint unit test

2015-02-16 Thread Arnaud Deprez
Thx for your answer, I'll read your blog :-). Is it possible to imagine to have such an improvement in the mocked service registry ? I think it would be nice if we can unit test our jpa stuff (like with spring) without having to run a complete karaf container for each test. Arnaud 2015-02-15

isMockEndpointsAndSkip documentation unclear

2015-02-16 Thread Chris Melikian
In http://camel.apache.org/mock.html, under the heading Mocking endpoints and skip sending to original endpoint, there are two examples, one using adviceWith() and the other using isMockEndpointsAndSkip() for mocking existing endpoints. The adviceWith() example mocks two endpoints whereas the

Re: isMockEndpointsAndSkip documentation unclear

2015-02-16 Thread Claus Ibsen
Hi Yeah it uses the same endpoint pattern matching as the interceptor does, so you can use jms* (using wildcard) for all jms endpoints eg. Or use a regular expression for more advanced. http://camel.apache.org/intercept On Mon, Feb 16, 2015 at 1:03 PM, Chris Melikian ch...@melikian.net wrote: