Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 1.26 KB

README.adoc

File metadata and controls

51 lines (34 loc) · 1.26 KB

Camel Example Kamelet Main

Introduction

This example shows how to use ready to use Kamelets that you can find at the Camel Kamelet Catalog.

The application is run with KameletMain class from camel-kamelet-main JAR. This makes it easy to run Camel standalone with Kamelet that can be automatically 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:

$ mvn compile

Run

You can run this example using

$ mvn camel:run

The application is also built as a fat jar (see pom.xml), which you can run with

$ mvn package -DskipTests
$ java -jar target/camel-example-kamelet-main-jar-with-dependencies.jar

Help and contributions

If you hit any problem using Camel or have some feedback, then please let us know.

We also love contributors, so get involved :-)

The Camel riders!