Re: loading routes from external xml files

2023-08-01 Thread Ricardo Garcia
@ski n Simply: camelContext.getRoutesLoader() -> org.apache.camel.support. PluginHelper.getRoutesLoader(camelContext) On Tue, Aug 1, 2023 at 8:34 AM ski n wrote: > OK, good to know as I use this functionality also heavily. Some > questions/remarks about this: > > 1. What's the reason that it was

Re: loading routes from external xml files

2023-07-31 Thread ski n
OK, good to know as I use this functionality also heavily. Some questions/remarks about this: 1. What's the reason that it was (re)moved? Is there a new concept behind the PluginHelper? 2. Maybe good to add this to the migration guide ( https://camel.apache.org/manual/camel-4-migration-guide.html)

Re: loading routes from external xml files

2023-07-31 Thread Claus Ibsen
Hi You can use org.apache.camel.support.PluginHelper On Mon, Jul 31, 2023 at 11:04 PM Ricardo Garcia wrote: > Hi, I am migrating to camel 4, as part of a broader migration to all > jakarta API instead of javax API > In camel 3 I could load routes from multiple external xml files: > > try (Direc

Fwd: loading routes from external xml files

2023-07-31 Thread Ricardo Garcia
Hi, I am migrating to camel 4, as part of a broader migration to all jakarta API instead of javax API In camel 3 I could load routes from multiple external xml files: try (DirectoryStream ds = Files.newDirectoryStream(routesDir, "*.xml" ); DefaultResourceResolvers.FileResolver resolver = new Defau