Skip to main content

Integration Reference

An integration is a set of Camel routes that the platform builds and runs, together with the settings it runs with. This page describes what an integration is made of and what each part controls.

Anatomy of an integration​

PartWhat it holdsChanging it
SourceThe routes: inline files, or a Git repository with a branch or releaseRebuilds the image
DependenciesCamel components and Maven artifacts beyond those detected in the routesRebuilds the image
SettingsHow it runs: properties, files, variables, compute, JVM, probes…Restarts without rebuilding
BindingsThe environments it is deployed inDeploys or undeploys

The distinction between the first two rows and the third is the one to remember: a rebuild takes minutes, a restart seconds.

Create an integration​

In Runtime Manager, Integrations, Create Integration. Three choices are made at creation.

Integration group. None — create it on its own, or an existing integration group. On its own, the integration is deployed and versioned by itself.

Source mode. Inline: you type the routes in the console. Git: you choose a repository, then a branch or a release. Inline suits prototypes; anything that reaches production belongs in Git, where it has a history and releases. See Build from a Git repository.

Expose HTTP Endpoint. On: the integration gets a service inside the environment, named after it, so that other workloads and the gateway can call it. Turn it off for an integration that only consumes, such as a queue listener or a timer.

A service inside the environment is not a public address

With Expose HTTP Endpoint on, the integration is reachable from the environment only. Publishing it is done in API Manager, with a gateway and an API instance.

Integration settings​

Settings are added with Add Capability. Each one covers one aspect of how the integration runs, and each has a page of its own. The ones used most:

SettingWhat it gives the integrationPage
ConfigurationProperty files, read with placeholdersProperty files
ResourcesFiles mounted at a path you chooseMounted files
EnvironmentEnvironment variablesEnvironment variables
ComputeReplicas, CPU and memoryCompute resources
JVMJVM flags, debugging, trusted certificate authoritiesJVM options
StoragePersistent and volatile storages, created with the integrationVolumes

Several settings can give files to the same integration. What each one mounts is added to what the others mount, whatever the order they were added in.

Keep values out of the routes

Anything that differs between environments (an address, a credential, a batch size) belongs in a setting, read by the route through a placeholder. The same release then runs everywhere.

Bindings, revisions and rollback​

An integration is bound to an environment before it can be deployed there. Each Apply changes that changes something creates a revision in that environment. Rolling back returns the integration to an earlier revision, reusing the image that was built for it.

Undeploy removes the integration from the selected environment and keeps its definition. Delete removes the integration itself.

Revisions are per environment

Rolling back in production does not change development, and the reverse. Check the environment selected before rolling back.