이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 56. Kamelet Main
Since Camel 3.11
A main class that is opinionated to boostrap and run Camel standalone with Kamelets (or plain YAML routes) for development and demo purposes.
56.1. Initial configuration 링크 복사링크가 클립보드에 복사되었습니다!
The KameletMain is pre-configured with the following properties:
camel.component.kamelet.location = classpath:/kamelets,github:apache:camel-kamelets/kamelets camel.component.rest.consumerComponentName = platform-http camel.component.rest.producerComponentName = vertx-http
camel.component.kamelet.location = classpath:/kamelets,github:apache:camel-kamelets/kamelets
camel.component.rest.consumerComponentName = platform-http
camel.component.rest.producerComponentName = vertx-http
You can override these settings by updating the configuration in application.properties.
56.2. Automatic dependencies downloading 링크 복사링크가 클립보드에 복사되었습니다!
The Kamelet Main can automatically download Kamelet YAML files from a remote location over http/https, and from github as well.
The official Kamelets from the Apache Camel Kamelet Catalog is stored on github and they can be used out of the box as-is.
For example a Camel route can be coded in YAML which uses the Earthquake Kamelet from the catalog, as shown below:
In the above example, the earthquake kamelet will be downloaded from github, and as well its required dependencies.
For more information, see Kamelet Main example