Re: Camel Kafka consumer dynamic topic

2023-10-03 Thread Mark Nuttall
Pretty sure I've done this kind of thing before. I think the info is here https://stackoverflow.com/questions/48380456/dynamic-routing-apache-camel On Tue, Oct 3, 2023, 3:22 AM Claus Ibsen wrote: > Hi > > If you use Java RouteBuilder, then you can maybe use spring dependency > injection, to inj

How to properly remove a routeConfiguration

2023-10-03 Thread ski n
I have a route and a routeConfiguration. I want to remove both from the CamelContext. I tried it like this: String routeId = route.getId(); String routeConfigurationId = route.getConfigurationId(); //remove route routeController.stopRoute(routeId, 30, TimeUnit.SECONDS); context.removeRoute(route

Re: Camel Kafka consumer dynamic topic

2023-10-03 Thread Claus Ibsen
Hi I created a ticket https://issues.apache.org/jira/browse/CAMEL-19945 On Tue, Oct 3, 2023 at 9:22 AM Claus Ibsen wrote: > Hi > > If you use Java RouteBuilder, then you can maybe use spring dependency > injection, to inject the topic name into a String field, > and then use that field when bui

Re: Camel 3.21.1 / JAXB DataFormat fails

2023-10-03 Thread Ephemeris Lappis
Hello. After debugging the failing route, I think that the properties I put in the map are correctly set when the data format is created, but not used at all to read the XSD files. The method "getJaxbProviderProperties" is not called during my execution. Is it a bug ? How can I make the data forma

Re: Camel Kafka consumer dynamic topic

2023-10-03 Thread Claus Ibsen
Hi If you use Java RouteBuilder, then you can maybe use spring dependency injection, to inject the topic name into a String field, and then use that field when building the route model. However I have also thought of adding {{bean:xxx?method=aaa}} as a function to property placeholder. Though nee