Skip to content
Weik.ioDocs
2026.2
Try Weik.io

Integration folders and routes

Weik.io 2026.2

An integration is a folder of Camel files in any layout, which weikio apply builds into a version. Product page · Video

Watch: Your first integration, 3:15

The video creates sandbox/hello with weikio init and publishes it with weikio apply. Then it deploys the integration to devtest and follows its log lines.

On this page

An integration’s Camel files go in one folder, in any layout you like. weikio apply builds the folder into a version.

The folder of an integration#

The finance team’s ERP export looks like this:

finance/erp-invoice-export
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 UI

A route uses the values of the environment it runs in as ordinary Camel properties:

routes/fetch-invoices.camel.yaml
- route:
    from:
      uri: timer:tick?period=60000
      steps:
        - setHeader: { name: Authorization, simple: "Bearer {{erp-api-key}}" }
        - to: "{{erp-url}}/api/invoices/pending"
        - to: direct:transform

What Camel loads#

Every kind of file that Camel loads can go in the folder:

  • Routes in YAML (*.camel.yaml) or XML
  • Routes in Java (*.java)
  • Java beans such as beans/InvoiceMapper.java
  • Kamelets (*.kamelet.yaml)
  • Route templates and route configurations
  • The REST DSL
  • Camel K style Pipe files
  • Jars

Kamelets and jars can be in any folder. The integration uses its kamelets without listing them. A library that is in no Maven repository goes in the folder as a jar of any size, such as in libs/. The routes and the beans can use the classes in the folder’s jars.

Weik.io compiles the Java beans with javac when it builds a version. A class that doesn’t compile fails the build with the compiler’s message.

A folder is an integration when it has integration.yaml or a route file at its top level. A folder whose routes are all in subfolders therefore 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 leaves out .camel-jbang/ and .git/ wherever they are in the folder, and prints a note for each.

integration.yaml#

integration.yaml is optional. Without it, an integration uses 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-version sets in application.properties.
  • It has no requirements on the agent that runs it.

Add integration.yaml when the integration needs more than the defaults:

erp-invoice-export/integration.yaml
name: erp-invoice-export
version: 1.0.0
camelVersion: "4.22.1"
requirements: { os: linux }
dependencies:
  - camel:jdbc
  - camel:http
  - mvn:com.microsoft.sqlserver:mssql-jdbc:12.8.1.jre11
kamelets: [erp-paging-source]

This integration lists camel:jdbc because its routes don’t use the component by URI. It lists camel:http because the build can’t see the component behind the placeholder {{erp-url}}. kamelets lists the shared kamelets of the project that it uses.

weikio init writes this flat form. The CLI and the admin UI also accept the same fields in a Weik.io document of kind: integration. A misspelled field fails both weikio validate and weikio apply.

application.properties#

Put settings that belong to this integration in application.properties at the top of the folder, and values that differ between environments in variables and secrets. A key set in application.properties keeps its value when the project has a variable of the same name. Only a value set for this integration, or an override on its deployment, replaces it.

You can’t set camel.jbang.repos in application.properties, because Weik.io fetches libraries only from the Maven repositories in its configuration.

README.md#

Add a README.md to the folder to describe the integration on its Overview in the admin UI. The admin UI shows it as GitHub-flavoured Markdown and draws each mermaid code block in it as a diagram, such as a flow chart of the routes. A relative link in the README opens the file it points to in the Source section, which shows every file of each version.

/integrations/finance/invoice-archiver
The Overview of finance/invoice-archiver with its README under the latest events and next to Recent activity. The README has a flow chart from erp-invoice-export through the channel invoice-created to invoice-archiver and the archive folder. It also has a table of the settings of invoice-archiver.The Overview of finance/invoice-archiver with its README under the latest events and next to Recent activity. The README has a flow chart from erp-invoice-export through the channel invoice-created to invoice-archiver and the archive folder. It also has a table of the settings of invoice-archiver.The Overview of finance/invoice-archiver with its README under the latest events and next to Recent activity. The README has a flow chart from erp-invoice-export through the channel invoice-created to invoice-archiver and the archive folder. It also has a table of the settings of invoice-archiver.The Overview of finance/invoice-archiver with its README under the latest events and next to Recent activity. The README has a flow chart from erp-invoice-export through the channel invoice-created to invoice-archiver and the archive folder. It also has a table of the settings of invoice-archiver.
In an integration's Overview, you see the README.md from its folder and each Mermaid block in it as a diagram.

Add the integration to Weik.io#

To publish the folder as a version of the integration, run weikio apply -f with its path:

Terminal
$ weikio apply -f ./finance/erp-invoice-export

The CLI finds integration folders by the rule in What Camel loads, so weikio apply -f ./finance/ publishes every integration folder under finance/. Versions and the developer loop explains what apply builds.

To run the version in an environment, give weikio deploy the project and the name of the integration, and the environment with --env:

Terminal
$ weikio deploy finance/erp-invoice-export --env devtest

When 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.

Spring Boot and Quarkus applications#

To move a Spring Boot or Quarkus application to Weik.io, put its Camel routes and kamelets in an integration folder. 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. It also creates the beans that Camel’s @BindToRegistry annotation marks in the folder’s Java classes.

Write the application’s dependencies as Maven coordinates in integration.yaml, or put them as jars in a folder such as libs/ when they’re in no Maven repository. Dependencies and kamelets says which of them need an entry.

Sign in to the live demo

Sign in with the shared viewer account. It can open every screen of the example projects but can't change anything.

E-mail
viewer@demo.weik.io
Password
try-weikio-live-demo
Open the live demo