Kamelets that use other kamelets?

2023-08-18 Thread Mikael Koskinen
Hi, Should it be possible to use kamelets from other kamelets? I'm seeing some errors, making it feel this isn't supported. The use case is to to have a custom kamelet that handle logins etc. against a particular API. Then I would like to have a set of more custom kamelets which abstract away som

users@camel.apache.org

2023-08-18 Thread Claus Ibsen
Hi You can use a file filter where you check the file if you have permission to delete the file, that way you can control if you want Camel to consume the file or not. On Fri, Aug 18, 2023 at 5:56 PM Petr Kuzel wrote: > Experiments show that extending process strategy is a thorny path, > the c

users@camel.apache.org

2023-08-18 Thread Petr Kuzel
Experiments show that extending process strategy is a thorny path, the component has a factory that creates a strategy according to move, moveFailed, preMove, noop, delete params. While creating subclass I could reverse engineer and inline for my set of parameters but even then I lack the params fo

users@camel.apache.org

2023-08-18 Thread Petr Kuzel
Thank you for the hint, I've checked, I have luck, the component I use has a public process strategy, so I can subclass it. I'd revert back if a new problem blocks this approach. BTW It suggests that the components should have their default process strategy declared as public and documented ... u

users@camel.apache.org

2023-08-18 Thread Claus Ibsen
Hi Maybe plugin your custom process strategy on the file component and handle the exception there, you can extend the default process strategy. On Wed, Aug 16, 2023 at 3:58 PM Petr Kuzel wrote: > Hi Camel community, > > I have a case where a route with a remote file-based endpoint polls > a f

Re: Load route from a yaml in an embedded Camel

2023-08-18 Thread Claus Ibsen
Hi Yes you can use RoutesLoader to load routes from whatever resource, and whatever DSL. See PluginHelper to get hold of RoutesLoader. On Fri, Aug 18, 2023 at 9:06 AM Fyodor Kravchenko wrote: > Hello, > > coudn't find it in the docs... what is the official/semi-official API to > load a route

Re: component aws2-ses2?

2023-08-18 Thread Gerda Ilger
Hello Andrea, I am sorry, I missed your message in January. Not getting an answer back then made perfect sense to me and I decided to ask again when the big push for Camel 4.0 was over - and this is when I discovered your mail. Like you suggested, I created a JIRA issue: https://issues.apache.

Load route from a yaml in an embedded Camel

2023-08-18 Thread Fyodor Kravchenko
Hello, coudn't find it in the docs... what is the official/semi-official API to load a route definition in a yaml format into the embedded Camel Context? I tried to use camel-main to load them from files but I wanted to have more flexibility as camel-main adds a seemingly unneeded extra layer