Integration folders and routes
Weik.io 2026.2An integration is a folder of Camel files in any layout, with routes in YAML, XML or Java, beans, kamelets, properties, jars and a README the admin UI shows. Product page · Video
Watch: Your first integration, 3:15
The video creates sandbox/hello with weikio init, publishes it with weikio apply, deploys it to devtest and follows its log lines.
This part of the video couldn't be loaded.
On this page
An integration is a folder of Apache Camel files, with routes in YAML, XML or Java and the beans, kamelets, properties and other files they use.
The folder of an integration#
The finance team’s ERP export looks like this:
erp-invoice-export/
integration.yaml optional: version, Camel line, requirements, dependencies
routes/
fetch-invoices.camel.yaml
transform.camel.yaml
publish.camel.yaml
beans/
InvoiceMapper.java
kamelets/
erp-paging-source.kamelet.yaml
application.properties static settings of the integration
mapping.txt
README.md shown on the integration's page in the admin UIA route uses the values of the environment it runs in as ordinary Camel properties:
- route:
from:
uri: timer:tick?period=60000
steps:
- setHeader: { name: Authorization, simple: "Bearer {{erp-api-key}}" }
- to: "{{erp-url}}/api/invoices/pending"
- to: direct:transformWhat Camel loads#
Every kind of file that Camel loads can go in the folder:
- Routes in the YAML DSL (
*.camel.yaml), in XML, and in Java (*.java). - Java beans such as
beans/InvoiceMapper.java. Weik.io compiles them withjavacwhen it builds a version, and a class that doesn’t compile fails the build with the compiler’s message. - Kamelets (
*.kamelet.yaml) in any folder, which the integration uses without listing them. - Route templates, route configurations and the REST DSL.
- Camel K style
Pipefiles. - Jars of any size anywhere in the folder, such as a
libs/folder, for libraries that are in no Maven repository. The routes and the beans can use their classes.
A folder is an integration when it has integration.yaml or a route file at its top level, so a folder whose routes are all in subfolders needs integration.yaml. A YAML file with apiVersion: weik.io/v1, such as the file of a variable, is a Weik.io document and never a route.
The weikio CLI doesn’t send .camel-jbang/, where Camel JBang keeps its run state, or .git/, which can contain credentials, wherever they are in the folder. It prints a note for each one it leaves out.
integration.yaml#
integration.yaml is optional. Without it, an integration gets these defaults:
- Its name is the name of its folder.
- Its project comes from the nearest
project.yaml, or from your CLI context when there is none. - It runs on the default Camel version set in Weik.io, or on the version that
camel.jbang.camel-versionsets inapplication.properties. - It has no requirements on the agent that runs it.
Add integration.yaml when you need a version number, a specific Camel line, requirements or dependencies:
name: erp-invoice-export
version: 1.0.0
camelVersion: "4.22.1"
requirements: { os: linux }
dependencies:
- camel:jdbc # a component the routes don't show by URI
- camel:http # the routes call {{erp-url}}, so the build can't see the component
- mvn:com.microsoft.sqlserver:mssql-jdbc:12.8.1.jre11
kamelets: [erp-paging-source] # shared kamelets of the projectweikio init writes this flat form, and the CLI and the admin UI also accept the same fields as a document with apiVersion: weik.io/v1, kind: integration, metadata and spec. A misspelled field is refused by both weikio validate and weikio apply.
application.properties#
application.properties at the top of the folder contains settings that belong to this integration. A key set there keeps its value when the project has a variable of the same name, and only a value set for this integration or an override on its deployment replaces it. Values that differ between environments belong in variables and secrets.
Weik.io fetches libraries only from the Maven repositories in its configuration, so camel.jbang.repos in application.properties is refused.
README.md#
A README.md in the folder is shown on the integration’s Overview in the admin UI as GitHub-flavoured Markdown. Each mermaid code block in it is drawn as a diagram, such as a flow chart of the routes. The Source section shows every file of each version, and a relative link in the README opens the file it points to there.




Add the integration to Weik.io#
weikio apply -f with the path of the folder sends the folder to your Weik.io installation, which builds it into a version of the integration:
$ weikio apply -f ./finance/erp-invoice-exportThe CLI finds integration folders by the rule in What Camel loads, so weikio apply -f ./finance/ publishes every integration folder under finance/.
weikio deploy runs a version of the integration in an environment. You give it the project and the name of the integration, and the environment with --env:
$ weikio deploy finance/erp-invoice-export --env devtestWhen the environment doesn’t run the version that apply built, the apply ends by printing the weikio deploy command that runs it. While you develop, weikio run ./finance/erp-invoice-export publishes and deploys the folder and then follows the integration’s log lines. Versions and the developer loop explains what apply builds and how weikio dev run runs the folder on your machine before you publish it.
Spring Boot and Quarkus applications#
The Camel routes and kamelets of a Spring Boot or Quarkus application move into an integration folder, and Weik.io runs them on Camel Main, without Spring Boot or Quarkus. Camel Main uses the Camel settings in application.properties, such as the camel.component.* keys, and it creates the beans that Camel’s @BindToRegistry annotation marks in the folder’s Java classes. The application’s dependencies become Maven coordinates in integration.yaml, or jars in a folder such as libs/ when they are in no Maven repository, and Dependencies and kamelets says which of them need an entry.