blob: 867f10098efc50c9df671436f113e826a7ac7bb1 [file] [log] [blame]
== Camel Example Kamelet Main
=== Introduction
This example shows how to use ready to use Kamelets you can find at the
https://camel.apache.org/camel-kamelets/latest/[Camel Kamelet Catalog].
The application is run with `KameletMain` class from camel-kamalet-main JAR.
This makes it easy to run Camel standalone with Kamelet that can be automatic
downloaded from github, and to use YAML DSL for creating Camel routes that use the Kamelets.
The example has no Java code at all.
A Camel routes is _coded_ in the `my-route.yaml` file using the YAML DSL that uses the Kamelet,
and log the result from the Kamelet to the console.
=== Build
You will need to compile this example first:
[source,sh]
----
$ mvn compile
----
=== Run
You can run this example using
[source,sh]
----
$ mvn camel:run
----
The application is also built as a _fat jar_ (see `pom.xml`), which you can run with
[source,sh]
----
$ mvn package
$ java -jar target/camel-example-kamelet-yaml-3.11.0-jar-with-dependencies.jar
----
=== Help and contributions
If you hit any problem using Camel or have some feedback, then please
https://camel.apache.org/community/support/[let us know].
We also love contributors, so
https://camel.apache.org/community/contributing/[get involved] :-)
The Camel riders!