Spring boot + MockEndpointsAndSkip + DirtiesContext

2016-08-04 Thread Minh Tran
Hi I am using Camel 2.17.2, Spring Boot 1.3.6 and seeing strange behaviour in my unit tests. I’ve simplified it to the following example @RunWith(CamelSpringBootJUnit4ClassRunner.class) @SpringApplicationConfiguration @MockEndpointsAndSkip("direct:b") @DirtiesContext(classMode = ClassMode.AFTER_

Re: Bean injection?

2016-08-04 Thread Brad Johnson
Fired the email before I finishedObviously the MyValidator class hasn't been instantiated or made available as it would be in Spring, CDI or Blueprint. So I need to add it to the registry. I can get the JndiRegistry from the PPDRegistry and call bind on it with name/bean but don't know if tha

Bean injection?

2016-08-04 Thread Brad Johnson
Is there an easy way to inject a bean in the CamelTestSupport that is required by a RouteBuilder? Looking at the CBTS example I'll modify it a bit: public class FilterTest extends CamelTestSupport { @EndpointInject(uri = "mock:result") protected MockEndpoint resultEndpoint; @Produce

Camel Suspend moving file to error folder.

2016-08-04 Thread fxthomas
Hello, I want to know if there is a way to handle this below scenario in which the file which is being processed get moved to the error folder when the camel route is suspended. So when i resume the route the file is not there to be processed . I thought suspend means kinda a wait\sleep process t

Doubts about how interceptors work

2016-08-04 Thread Alberto
Hello, I'm using interceptors to debug an application that use some routes. Some of these routes differ only for "from" and are instances of the same class (extending RouteBuilder class). I have strange behaviours (from my point of view). Some log messages from intercept() come from (or apparen

Re: camel router manage

2016-08-04 Thread Claus Ibsen
See control bus http://camel.apache.org/controlbus.html And then you can check the header if the batch is complet and then use the control bus to start the 2nd route. http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/Exchange.html#BATCH_COMPLETE On Thu, Aug 4, 2016 at 12:2

camel router manage

2016-08-04 Thread wave
Hi all, I wan to start the below second router after the first router batch file all transform finished. anyone knows how to implement that? ftp://user@ip/dir?password=x"/> ftp://user@ip/dir?password=x"/>

onException documentation error?

2016-08-04 Thread James Green
Referencing http://camel.apache.org/exception-clause.html under "Marking exceptions as handled" is an example "Example using handled" where it is stated: "In this route below we want to do special handling of all OrderFailedException as we want to return a customized response to the caller. First