Re: [java-dsl] - RouteBuilder

2019-05-19 Thread Francois Papon
Just for sharing, here the code working: @Test     public void publishHttpCamelContextWithDefinitionTest() throws Exception {     CamelContext camelContext = new DefaultCamelContext();     Assertions.assertNotNull(camelContext);     DefaultCamelContext.class.cast(camelContext).setName

Re: [java-dsl] - RouteBuilder

2019-05-19 Thread Francois Papon
Hi Claus, It works very well now :) Thanks for your help! regards, François fpa...@apache.org Le 20/05/2019 à 08:10, Claus Ibsen a écrit : > Hi > > You should add the definition via camel context api and not try to add > it via the route builder. > > > On Mon, May 20, 2019 at 5:47 AM Francois

Re: [java-dsl] - RouteBuilder

2019-05-19 Thread Claus Ibsen
Hi You should add the definition via camel context api and not try to add it via the route builder. On Mon, May 20, 2019 at 5:47 AM Francois Papon wrote: > > Hi, > > I'm trying to use a RouteDefintion to configure a RouteBuilder and it > doesn't work. > > It works by setting the route in the fi

[java-dsl] - RouteBuilder

2019-05-19 Thread Francois Papon
Hi, I'm trying to use a RouteDefintion to configure a RouteBuilder and it doesn't work. It works by setting the route in the first test but the endpoint is not publish in the second test... Any ideas? @Test     public void publishHttpCamelContextTest() throws Exception {     CamelContext c

Re: Strategy for deleting/moving files

2019-05-19 Thread Claus Ibsen
Hi On Sun, May 19, 2019 at 5:09 PM Jonathan Cook wrote: > > Hi Alex, > > Great, that did the trick. Why is it that onException works and > errorHandler doesn't for the file moveFailed specifically? Just to > understand.. > Because errorHandler will handle the error (eg handled = true) which make

Re: Strategy for deleting/moving files

2019-05-19 Thread Jonathan Cook
Hi Alex, Great, that did the trick. Why is it that onException works and errorHandler doesn't for the file moveFailed specifically? Just to understand.. Thanks again Jonathan On 18/05/2019 10:14, Jonathan Cook wrote: Thanks for the replies The moveFailed does do what I want but only when I