You can try look at local beans with "script" where you can embed the java
code
https://camel.apache.org/manual/route-template.html#_binding_beans_to_route_templates_using_bean_types
However that is used for kamelets, but could potentially also work in
yaml-dsl, where you can declare beans as well
Hey,
Few minutes later...
camel run aggregator.yaml Aggregator.java
Seems to work. I kind of thought that the files given to the run
command are just integration files but this is good.
Now, if there's a possibility to include the Aggregator.java inside
the aggregator.yaml somehow, that would b
Hi
You need to run it with
camel run *
Or to specify each file ala
camel run file1 file2
On Thu, Feb 16, 2023 at 7:22 AM Mikael Koskinen wrote:
> Hi,
>
> I'm trying but failing to use Java processors/Java classes when
> writing integrations with YAML and running them with Camel JBang.
>