Camel errorHandler doesn't log before or after sending message to the dead letter channel

2022-12-26 Thread Burcu Egri
We have a simple Camel route like below. But we have noticed that errorHandler log is not working. After some investigation, we understood that errorHandler has different log parameters then other logs(like in route or onException). We haven't succeeded to use errorHandler log. Yes, there are

Re: Camel JAXB DataFormat / Change between 2.X and 3.X

2022-12-26 Thread Ephemeris Lappis
Thanks a lot... Ephemeris Lappis Le 26/12/2022 à 19:18, Claus Ibsen a écrit : Hi Yes correct and was deprecated in 2.x to tell about changes coming. On Mon, Dec 26, 2022 at 4:32 PM Ephemeris Lappis wrote: Hello. We have some Camel contexts that define a JAXB DataFormat before the

Re: Camel JAXB DataFormat / Change between 2.X and 3.X

2022-12-26 Thread Claus Ibsen
Hi Yes correct and was deprecated in 2.x to tell about changes coming. On Mon, Dec 26, 2022 at 4:32 PM Ephemeris Lappis wrote: > Hello. > > We have some Camel contexts that define a JAXB DataFormat before the > routes, and then use a reference on the route. > > Example : > > >

Camel JAXB DataFormat / Change between 2.X and 3.X

2022-12-26 Thread Ephemeris Lappis
Hello. We have some Camel contexts that define a JAXB DataFormat before the routes, and then use a reference on the route. Example : and then : Now it seems that we have to add a "custom" element to reference the DataFormat, like : Please, could you confirm this change, and that

Re: Camel JBang 3.20: camel.support.RouteWatcherReloadStrategy : Routes with no id's detected...

2022-12-26 Thread Claus Ibsen
Hi Ah yeah it should be NOT custom id assigned. You are welcome to send a PR BTW is there a reason you turn off remove all routes? So the code should be like: if (!route.isCustomId()) { On Mon, Dec 26, 2022 at 2:40 PM Mikael Koskinen wrote: > Hi again, > > I checked the source code of

Re: Camel JBang 3.20: camel.support.RouteWatcherReloadStrategy : Routes with no id's detected...

2022-12-26 Thread Mikael Koskinen
Hi again, I checked the source code of RouteWatcherReloadStrategy from here: https://github.com/apache/camel/blob/00526e77bfa88bc20bcde640487cf7d83629e49d/core/camel-support/src/main/java/org/apache/camel/support/RouteWatcherReloadStrategy.java#L274 To me it looks like the warning "Routes with

Re: Camel JBang 3.20: camel.support.RouteWatcherReloadStrategy : Routes with no id's detected...

2022-12-26 Thread Mikael Koskinen
Hey, Hmm, I'm not sure. The unit test you linked seems to use the "id" field like I used when defining the route. But the assert uses "routeId". For example the test: when: loadRoutes ''' - route: id: demo-route < Here's the "id" field def "load route inlined camelCase"() { But in the

Re: Camel JBang 3.20: camel.support.RouteWatcherReloadStrategy : Routes with no id's detected...

2022-12-26 Thread Claus Ibsen
Hi See some unit tests https://github.com/apache/camel/blob/main/dsl/camel-yaml-dsl/camel-yaml-dsl/src/test/groovy/org/apache/camel/dsl/yaml/RoutesTest.groovy#L198 You can also use Apache Camel Karavan to design yaml routes as it builds the YAML correct On Mon, Dec 26, 2022 at 12:09 PM Mikael

Re: Camel JBang 3.20: camel.support.RouteWatcherReloadStrategy : Routes with no id's detected...

2022-12-26 Thread Mikael Koskinen
I checked the YAML DSL schema for RouteDefinition and it doesn't seem to have the routeId field, only id: https://github.com/apache/camel/blob/796e58cd27a07b91c5690cac977356788ba7a03a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camel-yaml-dsl.json#L2546 ma 26. jouluk. 2022

Re: Camel JBang 3.20: camel.support.RouteWatcherReloadStrategy : Routes with no id's detected...

2022-12-26 Thread Mikael Koskinen
Thanks! I tried routeId and route-id but got the following error on both: Unsupported field: routeId in file:timers.yaml, line 2, column 5: routeId: firstRoute ^ at

Re: Camel JBang 3.20: camel.support.RouteWatcherReloadStrategy : Routes with no id's detected...

2022-12-26 Thread Claus Ibsen
And it can use camelCase too, so routeId or route-id are both possible. However routeId is recommended so you use same case as XML, Java DSL etc. On Mon, Dec 26, 2022 at 11:00 AM Claus Ibsen wrote: > Hi > > Use route-id to set id for routes > > > On Mon, Dec 26, 2022 at 10:38 AM Mikael Koskinen

Re: Camel JBang 3.20: camel.support.RouteWatcherReloadStrategy : Routes with no id's detected...

2022-12-26 Thread Claus Ibsen
Hi Use route-id to set id for routes On Mon, Dec 26, 2022 at 10:38 AM Mikael Koskinen wrote: > Hi, > > I'm testing how the route reload works if one file has multiple > routes. I've defined two routes in a single file and assigned ids to > both: > > - route: > id: firstRoute > from: > uri:

Camel JBang 3.20: camel.support.RouteWatcherReloadStrategy : Routes with no id's detected...

2022-12-26 Thread Mikael Koskinen
Hi, I'm testing how the route reload works if one file has multiple routes. I've defined two routes in a single file and assigned ids to both: - route: id: firstRoute from: uri: "timer:yaml" parameters: period: "2000" steps: - setBody: constant: "Hello Camel from yaml timer 30" - log: "${body}"