Camel Components

Main

Since Camel 3.0

This module is used for running Camel standalone via a main class extended from camel-main.

Configuration options

When running Camel via camel-main you can configure Camel in the application.properties file.

The following tables lists all the options:

Camel Main configurations

The camel.main supports 132 options, which are listed below.

Name Description Default Type

camel.main.additionalSensitiveKeywords

Camel comes with a default set of sensitive keywords which are automatically masked. This option allows to add additional custom keywords to be masked as well. Multiple keywords can be separated by comma.

String

camel.main.allowUseOriginalMessage

Sets whether to allow access to the original message from Camel’s error handler, or from org.apache.camel.spi.UnitOfWork.getOriginalInMessage(). Turning this off can optimize performance, as defensive copy of the original message is not needed. Default is false.

false

boolean

camel.main.autoConfigurationEnabled

Whether auto configuration of components, dataformats, languages is enabled or not. When enabled the configuration parameters are loaded from the properties component. You can prefix the parameters in the properties file with: - camel.component.name.option1=value1 - camel.component.name.option2=value2 - camel.dataformat.name.option1=value1 - camel.dataformat.name.option2=value2 - camel.language.name.option1=value1 - camel.language.name.option2=value2, where name is the name of the component, dataformat or language such as seda,direct,jaxb. The auto configuration also works for any options on components that are a complex type (not standard Java type) and there has been an explicit single bean instance registered to the Camel registry via the org.apache.camel.spi.Registry#bind(String,Object) method or by using the org.apache.camel.BindToRegistry annotation style. This option is default enabled.

true

boolean

camel.main.autoConfigurationEnvironmentVariablesEnabled

Whether auto configuration should include OS environment variables as well. When enabled this allows to overrule any configuration using an OS environment variable. For example to set a shutdown timeout of 5 seconds: CAMEL_MAIN_SHUTDOWNTIMEOUT=5. This option is default enabled.

true

boolean

camel.main.autoConfigurationFailFast

Whether auto configuration should fail fast when configuring one or more properties fails for whatever reason such as an invalid property name, etc. This option is default enabled.

true

boolean

camel.main.autoConfigurationLogSummary

Whether auto configuration should log a summary with the configured properties. This option is default enabled.

true

boolean

camel.main.autoConfigurationSystemPropertiesEnabled

Whether auto configuration should include JVM system properties as well. When enabled this allows to overrule any configuration using a JVM system property. For example to set a shutdown timeout of 5 seconds: -D camel.main.shutdown-timeout=5. Note that JVM system properties take precedence over OS environment variables. This option is default enabled.

true

boolean

camel.main.autoStartup

Whether Camel starts the routes automatically when it starts. When false, no route is started (CamelContext itself is always started), and you start the routes yourself, for example with CamelContext.getRouteController().startRoute(String). The default is true.

true

boolean

camel.main.autoStartupExcludePattern

Comma-separated patterns of the routes that are not started automatically when Camel starts. A pattern matches the route id or the endpoint URI of the route input, by exact match, wildcard or regular expression; for example kafka*,jms* excludes the routes that consume from Kafka or JMS.

String

camel.main.autowiredEnabled

Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. Default is true.

true

boolean

camel.main.basePackageScan

Package name to use as base (offset) for classpath scanning of RouteBuilder , org.apache.camel.TypeConverter , CamelConfiguration classes, and also classes annotated with org.apache.camel.Converter , or org.apache.camel.BindToRegistry . If you are using Spring Boot then it is instead recommended to use Spring Boots component scanning and annotate your route builder classes with Component. In other words only use this for Camel Main in standalone mode.

String

camel.main.basePackageScanEnabled

Whether base package scan is enabled.

true

boolean

camel.main.beanIntrospectionExtendedStatistics

Whether to log, at INFO level when Camel stops, how many times bean introspection (Java reflection) was used; otherwise it is logged at DEBUG level. The default is false.

false

boolean

camel.main.beanIntrospectionLoggingLevel

Sets the logging level used by bean introspection, logging activity of its usage. The default is TRACE.

LoggingLevel

camel.main.beanPostProcessorEnabled

Can be used to turn off bean post processing. Be careful to turn this off, as this means that beans that use Camel annotations such as org.apache.camel.EndpointInject , org.apache.camel.ProducerTemplate , org.apache.camel.Produce , org.apache.camel.Consume etc will not be injected and in use. Turning this off should only be done if you are sure you do not use any of these Camel features. Not all runtimes allow turning this off. The default value is true (enabled).

true

boolean

camel.main.camelEventsTimestampEnabled

Whether to include timestamps for all emitted Camel Events. Enabling this allows to know fine-grained at what time each event was emitted, which can be used for reporting to report exactly the time of the events. This is by default false to avoid the overhead of including this information.

false

boolean

camel.main.caseInsensitiveHeaders

Whether to use case sensitive or insensitive headers. Important: When using case sensitive (this is set to false). Then the map is case sensitive which means headers such as content-type and Content-Type are two different keys which can be a problem for some protocols such as HTTP based, which rely on case insensitive headers. However case sensitive implementations can yield faster performance. Therefore use case sensitive implementation with care. Default is true.

true

boolean

camel.main.cloudPropertiesLocation

Comma-separated directories with configuration mounted from a cloud platform, such as Kubernetes ConfigMaps and Secrets. Camel walks each directory (including sub directories) and loads every .properties file, and every other file as one property named after the file, with the file content as the value. These properties take precedence over the application properties.

String

camel.main.compileWorkDir

Work directory for compiler. Can be used to write compiled classes or other resources.

String

camel.main.configurationClasses

Sets classes names that will be used to configure the camel context as example by providing custom beans through org.apache.camel.BindToRegistry annotation.

String

camel.main.configurations

Sets the configuration objects used to configure the camel context.

List

camel.main.consumerTemplateCacheSize

The maximum number of consumers (one per endpoint) that the ConsumerTemplate created by the runtime keeps in its cache.

1000

int

camel.main.contextReloadEnabled

Used for enabling context reloading. If enabled then Camel allow external systems such as security vaults (AWS secrets manager, etc.) to trigger refreshing Camel by updating property placeholders and reload all existing routes to take changes into effect.

false

boolean

camel.main.description

Sets the description (intended for humans) of the Camel application.

String

camel.main.devConsoleEnabled

Whether to enable developer console (requires camel-console on classpath). The developer console is only for assisting during development. This is NOT for production usage.

false

boolean

camel.main.dumpRoutes

The format to dump all loaded routes (including rests and route templates) in during startup: xml, yaml or java (Camel DSL, which needs camel-xml-io, camel-yaml-io or camel-java-io on the classpath), json (the structure of the routes for tooling, not Camel DSL), or png (route diagram images, saved to camel-route-diagrams.png or to the dumpRoutesOutput folder, which needs camel-diagram on the classpath). The dump may include sensitive values configured in the endpoints, so it is meant for development and troubleshooting, not for production.

String

camel.main.dumpRoutesGeneratedIds

Whether to include auto generated IDs in the dumped output. Default is false.

false

boolean

camel.main.dumpRoutesInclude

Controls what to include in output for route dumping. Possible values: all, routes, rests, routeConfigurations, routeTemplates, beans, dataFormats. Multiple values can be separated by comma. Default is routes.

routes

String

camel.main.dumpRoutesLog

Whether to log route dumps to Logger

true

boolean

camel.main.dumpRoutesOutput

The file or directory to save the route dumps to. A file gets all the content; a directory gets one or more files, named after the source files of the routes, or auto generated names.

String

camel.main.dumpRoutesResolvePlaceholders

Whether to resolve property placeholders in the dumped output. Default is true.

true

boolean

camel.main.dumpRoutesUriAsParameters

When dumping routes to YAML format, then this option controls whether endpoint URIs should be expanded into a key/value parameters.

false

boolean

camel.main.duration

How long to run before Camel stops, as a duration with a time unit such as 15s, 2m or 1h (a plain number is seconds). An alias of durationMaxSeconds that accepts a unit; durationMaxAction decides whether the JVM shuts down or only the routes stop.

String

camel.main.durationHitExitCode

The exit code of the JVM when Camel stops because durationMaxSeconds, durationMaxIdleSeconds or durationMaxMessages was reached. The default is 0.

int

camel.main.durationMaxAction

Controls whether the Camel application should shutdown the JVM, or stop all routes, when duration max is triggered.

shutdown

String

camel.main.durationMaxIdleSeconds

How long, in seconds, Camel can be idle (no message created or completed, and no inflight message) before it stops: the JVM shuts down, or only the routes stop when durationMaxAction is stop. The default 0 turns this off.

int

camel.main.durationMaxMessages

How many messages (completed or failed exchanges) to process before Camel stops: the JVM shuts down, or only the routes stop when durationMaxAction is stop. The default 0 turns this off.

int

camel.main.durationMaxSeconds

How long, in seconds, to run before Camel stops: the JVM shuts down, or only the routes stop when durationMaxAction is stop. Use -1 to stop right after startup. The default 0 runs until Camel is stopped.

int

camel.main.endpointBridgeErrorHandler

Allows for bridging the consumer to the Camel routing Error Handler, which means any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN/ERROR level and ignored. The default value is false.

false

boolean

camel.main.endpointLazyStartProducer

Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel’s routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The default value is false.

false

boolean

camel.main.endpointRuntimeStatisticsEnabled

Sets whether endpoint runtime statistics is enabled (gathers runtime usage of each incoming and outgoing endpoints). The default value is false.

false

boolean

camel.main.exchangeFactory

Controls whether to pool (reuse) exchanges or create new exchanges (prototype). Using pooled will reduce JVM garbage collection overhead by avoiding to re-create Exchange instances per message each consumer receives. The default is prototype mode.

default

String

camel.main.exchangeFactoryCapacity

The capacity the pool (for each consumer) uses for storing exchanges. The default capacity is 100.

100

int

camel.main.exchangeFactoryStatisticsEnabled

Configures whether statistics is enabled on exchange factory.

false

boolean

camel.main.extraShutdownTimeout

Extra time, in seconds, that Camel Main waits on top of shutdownTimeout for CamelContext to stop, when the JVM is shutting down (such as on SIGTERM). shutdownTimeout is for the graceful shutdown of the routes, and the extra time for the other services.

15

int

camel.main.fileConfigurations

Comma-separated locations of additional properties files to load from the file system (not the classpath), each a directory with a file name pattern such as /var/app/secret/*.properties. Their properties take precedence over the application properties, except the camel.main options, which are already applied. Use it for configuration mounted in containers, such as secrets.

String

camel.main.globalOptions

Sets global options that can be referenced in the camel context Important: This has nothing to do with property placeholders, and is just a plain set of key/value pairs which are used to configure global options on CamelContext, such as a maximum debug logging length etc.

Map

camel.main.groovyPreloadCompiled

Whether to preload existing compiled Groovy sources from the compileWorkDir option on startup. This can be enabled to avoid compiling sources that already has been compiled during a build phase.

false

boolean

camel.main.groovyScriptPattern

Directories to scan for groovy source to be pre-compiled. For example: scripts/*.groovy will scan inside the classpath folder scripts for all groovy source files. By default, sources are scanned from the classpath, but you can prefix with file: to use file system. The directories are using Ant-path style pattern, and multiple directories can be specified separated by comma. This requires having camel-groovy JAR on the classpath.

classpath:camel-groovy/,classpath:camel-groovy-compiled/

String

camel.main.inflightRepositoryBrowseEnabled

Sets whether the inflight repository should allow browsing each inflight exchange. This is by default disabled as there is a very slight performance overhead when enabled.

false

boolean

camel.main.javaRoutesExcludePattern

Used for exclusive filtering RouteBuilder classes which are collected from the registry or via classpath scanning. The exclusive filtering takes precedence over inclusive filtering. The pattern is using Ant-path style pattern. Multiple patterns can be specified separated by comma. For example to exclude all classes starting with Bar use: **/Bar* To exclude all routes from a specific package use: com/mycompany/bar/* To exclude all routes from a specific package and its sub-packages use double wildcards: com/mycompany/bar/** And to exclude all routes from two specific packages use: com/mycompany/bar/*,com/mycompany/stuff/*

String

camel.main.javaRoutesIncludePattern

Used for inclusive filtering RouteBuilder classes which are collected from the registry or via classpath scanning. The exclusive filtering takes precedence over inclusive filtering. The pattern is using Ant-path style pattern. Multiple patterns can be specified separated by comma. For example to include all classes starting with Foo use: **/Foo* To include all routes from a specific package use: com/mycompany/foo/* To include all routes from a specific package and its sub-packages use double wildcards: com/mycompany/foo/** And to include all routes from two specific packages use: com/mycompany/foo/*,com/mycompany/stuff/*

String

camel.main.jmxEnabled

Whether JMX management is enabled (requires camel-management on the classpath).

true

boolean

camel.main.jmxManagementMBeansLevel

Which Camel objects are registered as JMX MBeans: ContextOnly (only the CamelContext), RoutesOnly (the CamelContext and the routes) or Default (the CamelContext, the routes and the processors).

Default

ManagementMBeansLevel

camel.main.jmxManagementNamePattern

The pattern for the name of the CamelContext in its JMX object names. Tokens: name and camelId (the CamelContext name) and counter (an incrementing counter). The default is name.

name

String

camel.main.jmxManagementRegisterRoutesCreateByKamelet

Whether routes created by Kamelets should be registered for JMX management. Enabling this allows to have fine-grained monitoring and management of every route created via Kamelets. This is default disabled as a Kamelet is intended as a component (black-box) and its implementation details as Camel route makes the overall management and monitoring of Camel applications more verbose. During development of Kamelets then enabling this will make it possible for developers to do fine-grained performance inspection and identify potential bottlenecks in the Kamelet routes. However, for production usage then keeping this disabled is recommended.

false

boolean

camel.main.jmxManagementRegisterRoutesCreateByTemplate

Whether routes created by route templates (not Kamelets) should be registered for JMX management. Enabling this allows to have fine-grained monitoring and management of every route created via route templates. This is default enabled (unlike Kamelets) as routes created via templates is regarded as standard routes, and should be available for management and monitoring.

true

boolean

camel.main.jmxManagementStatisticsLevel

The level of the JMX performance statistics: Extended (additional statistics), Default (the CamelContext, routes and processors), RoutesOnly (only the CamelContext and routes) or Off.

Default

ManagementStatisticsLevel

camel.main.jmxUpdateRouteEnabled

Whether to allow updating routes at runtime via JMX using the ManagedRouteMBean. This is disabled by default, but can be enabled for development and troubleshooting purposes, such as updating routes in an existing running Camel via JMX and other tools.

false

boolean

camel.main.loadHealthChecks

Whether to load custom health checks by scanning the classpath for META-INF/services/org/apache/camel/health-check/*-check files.

false

boolean

camel.main.loadStatisticsEnabled

Sets whether Camel load (inflight messages, not cpu) statistics is enabled (something like the unix load average). The statistics requires to have camel-management on the classpath as JMX is required. The default value is false.

false

boolean

camel.main.loadTypeConverters

Whether to load custom type converters by scanning classpath. This is used for backwards compatibility with Camel 2.x. It’s recommended to migrate to use fast type converter loading by setting Converter(loader = true) on your custom type converter classes.

false

boolean

camel.main.logDebugMaxChars

The maximum number of characters of the message body to include when Camel logs a message, such as in the log component and the error handler; a longer body is clipped. Use -1 to not log the body at all. When not set, the default limit of each logger applies.

int

camel.main.logExhaustedMessageBody

Sets whether to log exhausted message body with message history. Default is false.

false

boolean

camel.main.logLanguage

To configure the language to use for Log EIP. By default, the simple language is used. However, Camel also supports other languages such as groovy.

String

camel.main.logMask

Whether to mask sensitive values, such as passwords, in what the Log EIP and the log component log. A route or a log endpoint can override it. The default is false.

false

boolean

camel.main.logName

The global name to use for Log EIP. The name is by default the routeId or the source:line if source location is enabled. You can also specify the name using tokens: ${class} - the logger class name (org.apache.camel.processor.LogProcessor) ${contextId} - the camel context id ${routeId} - the route id ${groupId} - the route group id ${nodeId} - the node id ${nodePrefixId} - the node prefix id ${source} - the source:line (source location must be enabled) ${source.name} - the source filename (source location must be enabled) ${source.line} - the source line number (source location must be enabled). For example to use the route and node id you can specify the name as: ${routeId}/${nodeId}

String

camel.main.mainListenerClasses

Sets classes names that will be used for MainListener that makes it possible to do custom logic during starting and stopping camel-main.

String

camel.main.mainListeners

Sets main listener objects that will be used for MainListener that makes it possible to do custom logic during starting and stopping camel-main.

List

camel.main.mdcLoggingKeysPattern

Sets the pattern used for determine which custom MDC keys to propagate during message routing when the routing engine continues routing asynchronously for the given message. Setting this pattern to * will propagate all custom keys. Or setting the pattern to foo*,bar* will propagate any keys starting with either foo or bar. Notice that a set of standard Camel MDC keys are always propagated which starts with camel. as key name. The match rules are applied in this order (case insensitive): 1. exact match, returns true 2. wildcard match (pattern ends with a * and the name starts with the pattern), returns true 3. regular expression match, returns true 4. otherwise returns false Deprecated, use camel-mdc component instead

String

camel.main.messageHistory

Sets whether message history is enabled or not. Default is false.

false

boolean

camel.main.messageSizeEnabled

Sets whether message size observation is enabled (default is false). When enabled, Camel will compute the size of message body and headers (in bytes) per endpoint (for both IN and OUT directions) and make this available via JMX MBeans (min/max/mean body size and headers size).

false

boolean

camel.main.modeline

Whether to support JBang style //DEPS to specify additional dependencies when running Camel CLI

false

boolean

camel.main.name

Sets the name of the CamelContext.

String

camel.main.producerTemplateCacheSize

The maximum number of producers (one per endpoint) that the ProducerTemplate created by the runtime keeps in its cache.

1000

int

camel.main.profile

The Camel profile to run with: dev, test or prod. The dev profile turns on developer features by default, such as the developer console, tracing on standby, message history and extra runtime statistics, which add a little overhead. In Camel Main the prod profile sets the security policy (camel.security.policy) to fail, and Camel Main also loads classpath:application-{profile}.properties when it exists. When not set, no profile is active.

String

camel.main.routeFilterExcludePattern

Comma-separated patterns of the routes to exclude; a matching route is not added, for example jms:* excludes the routes that consume from JMS. A pattern matches the route id or the endpoint URI of the route input, by exact match, wildcard or regular expression. It takes precedence over routeFilterIncludePattern.

String

camel.main.routeFilterIncludePattern

Comma-separated patterns of the routes to include; a route that matches none of them is not added. A pattern matches the route id or the endpoint URI of the route input, by exact match, wildcard or regular expression; for example foo* includes the routes whose id starts with foo. routeFilterExcludePattern takes precedence.

String

camel.main.routesBuilderClasses

Sets classes names that implement RoutesBuilder .

String

camel.main.routesBuilders

Sets the RoutesBuilder instances.

List

camel.main.routesCollectorEnabled

Whether the routes collector is enabled or not. When enabled Camel will auto-discover routes (RouteBuilder instances from the registry and also load additional routes from the file system). The routes collector is default enabled.

true

boolean

camel.main.routesCollectorIgnoreLoadingError

Whether the routes collector should ignore any errors during loading and compiling routes. This is only intended for development or tooling.

false

boolean

camel.main.routesExcludePattern

Used for exclusive filtering of routes from directories. The exclusive filtering takes precedence over inclusive filtering. The pattern is using Ant-path style pattern. Multiple patterns can be specified separated by comma, as example, to exclude all the routes from a directory whose name contains foo use: **/foo.

String

camel.main.routesIncludePattern

Used for inclusive filtering of routes from directories. The exclusive filtering takes precedence over inclusive filtering. The pattern is using Ant-path style pattern. Multiple patterns can be specified separated by comma, as example, to include all the routes from a directory whose name contains foo use: **/foo.

classpath:camel/,classpath:camel-template/,classpath:camel-rest/*

String

camel.main.routesReloadDirectory

Directory to scan for route changes. Camel cannot scan the classpath, so this must be configured to a file directory. Development with Maven as build tool, you can configure the directory to be src/main/resources to scan for Camel routes in XML or YAML files.

src/main/resources/camel

String

camel.main.routesReloadDirectoryRecursive

Whether the directory to scan should include sub directories. Depending on the number of sub directories, then this can cause the JVM to startup slower as Camel uses the JDK file-watch service to scan for file changes.

false

boolean

camel.main.routesReloadEnabled

Used for enabling automatic routes reloading. If enabled then Camel will watch for file changes in the given reload directory, and trigger reloading routes if files are changed.

false

boolean

camel.main.routesReloadInterval

How often to scan the reload directory for changed files, in millis. A change is reloaded at the next scan, so a shorter interval reloads it sooner. A longer interval groups more of one save together: two files saved a second apart are one change at 2000 and two at 1000.

2000

long

camel.main.routesReloadPattern

Comma-separated Ant-style patterns of the files in the reload directory to watch for changes, such as .yaml,.xml (the default when not set). A pattern that starts with ! excludes what it matches, such as ,!inbox/* to watch every file except the files under the inbox folder.

String

camel.main.routesReloadRemoveAllRoutes

When reloading routes should all existing routes be stopped and removed. By default, Camel will stop and remove all existing routes before reloading routes. This ensures that only the reloaded routes will be active. If disabled then only routes with the same route id is updated, and any existing routes are continued to run.

true

boolean

camel.main.routesReloadRestartDuration

Whether to restart max duration when routes are reloaded. For example if max duration is 60 seconds, and a route is reloaded after 25 seconds, then this will restart the count and wait 60 seconds again.

false

boolean

camel.main.shutdownLogInflightExchangesOnTimeout

Whether to log, at INFO level, the inflight exchanges that are still running when a graceful shutdown times out (otherwise they are only logged at DEBUG level). This requires inflightRepositoryBrowseEnabled to be enabled.

true

boolean

camel.main.shutdownNowOnTimeout

Whether to force the shutdown of the routes whose consumers did not stop within shutdownTimeout. When false, those routes are left running, and are halted abruptly when CamelContext has been shut down.

true

boolean

camel.main.shutdownRoutesInReverseOrder

Sets whether routes should be shutdown in reverse or the same order as they were started.

true

boolean

camel.main.shutdownSuppressLoggingOnTimeout

Whether Camel should try to suppress logging during shutdown and timeout was triggered, meaning forced shutdown is happening. And during forced shutdown we want to avoid logging errors/warnings et all in the logs as a side-effect of the forced timeout. Notice the suppress is a best effort as there may still be some logs coming from 3rd party libraries and whatnot, which Camel cannot control. This option is default false.

false

boolean

camel.main.shutdownTimeout

Timeout in seconds to graceful shutdown all the Camel routes.

45

int

camel.main.sourceLocationEnabled

Whether to capture precise source location:line-number for all EIPs in Camel routes. Enabling this will impact parsing Java based routes (also Groovy etc.) on startup as this uses JDK StackTraceElement to calculate the location from the Camel route, which comes with a performance cost. This only impact startup, not the performance of the routes at runtime.

false

boolean

camel.main.startupRecorder

To use startup recorder for capturing execution time during starting Camel. The recorder can be one of: false (or off), logging, backlog, java-flight-recorder (or jfr).

String

camel.main.startupRecorderDir

Directory to store the recording. By default the current directory will be used. Use false to turn off saving recording to disk.

String

camel.main.startupRecorderDuration

How long time to run the startup recorder. Use 0 (default) to keep the recorder running until the JVM is exited. Use -1 to stop the recorder right after Camel has been started (to only focus on potential Camel startup performance bottlenecks) Use a positive value to keep recording for N seconds. When the recorder is stopped then the recording is auto saved to disk (note: save to disk can be disabled by setting startupRecorderDir to false)

long

camel.main.startupRecorderMaxDepth

To filter out sub steps at a maximum depth. Use -1 for no maximum. Use 0 for no sub steps. Use 1 for max 1 sub step, and so forth. The default is -1.

-1

int

camel.main.startupRecorderProfile

To use a specific Java Flight Recorder profile configuration, such as default or profile. The default is default.

default

String

camel.main.startupRecorderRecording

To enable Java Flight Recorder to start a recording and automatic dump the recording to disk after startup is complete. This requires that camel-jfr is on the classpath, and to enable this option.

false

boolean

camel.main.startupRecorderRuntimeEnabled

To also instrument the running Camel application, and not only its startup, by emitting Java Flight Recorder events for every exchange, route and processor. This requires that camel-jfr is on the classpath, and to enable this option. The runtime events are only captured while a recording is active. As they are emitted per message they add overhead, so this is turned off by default.

false

boolean

camel.main.startupSummaryLevel

Controls the level of information logged during startup (and shutdown) of CamelContext.

Default

StartupSummaryLevel

camel.main.streamCachingAllowClasses

Comma-separated class names of the message body types that may be stream cached (a subclass matches too); bodies of other types are not cached. When neither this nor streamCachingDenyClasses is set, every type that Camel can convert to a stream cache is cached.

String

camel.main.streamCachingAnySpoolRules

Sets whether if just any of the org.apache.camel.spi.StreamCachingStrategy.SpoolRule rules returns true then shouldSpoolCache(long) returns true, to allow spooling to disk. If this option is false, then all the org.apache.camel.spi.StreamCachingStrategy.SpoolRule must return true. The default value is false which means that all the rules must return true.

false

boolean

camel.main.streamCachingBufferSize

The size in bytes of the buffers allocated for in-memory stream caches. The default is 16384.

int

camel.main.streamCachingDenyClasses

Comma-separated class names of the message body types that are not stream cached (a subclass matches too). It takes precedence over streamCachingAllowClasses.

String

camel.main.streamCachingEnabled

Sets whether stream caching is enabled or not. While stream types (like StreamSource, InputStream and Reader) are commonly used in messaging for performance reasons, they also have an important drawback: they can only be read once. In order to be able to work with message content multiple times, the stream needs to be cached. Streams are cached in memory only (by default). If streamCachingSpoolEnabled=true, then, for large stream messages (over 128 KB by default) will be cached in a temporary file instead, and Camel will handle deleting the temporary file once the cached stream is no longer necessary. Default is true.

true

boolean

camel.main.streamCachingRemoveSpoolDirectoryWhenStopping

Whether to remove stream caching temporary directory when stopping. This option is default true.

true

boolean

camel.main.streamCachingSpoolCipher

Sets a stream caching cipher name to use when spooling to disk to write with encryption. By default the data is not encrypted.

String

camel.main.streamCachingSpoolDirectory

Sets the stream caching spool (temporary) directory to use for overflow and spooling to disk. If no spool directory has been explicit configured, then a temporary directory is created in the java.io.tmpdir directory.

String

camel.main.streamCachingSpoolEnabled

To enable stream caching spooling to disk. This means, for large stream messages (over 128 KB by default) will be cached in a temporary file instead, and Camel will handle deleting the temporary file once the cached stream is no longer necessary. Default is false.

false

boolean

camel.main.streamCachingSpoolRules

Sets custom rules (org.apache.camel.spi.StreamCachingStrategy.SpoolRule) for deciding when to spool to disk. Multiple rules can be separated by comma.

String

camel.main.streamCachingSpoolThreshold

Stream caching threshold in bytes when overflow to disk is activated. The default threshold is 128kb. Use -1 to disable overflow to disk.

long

camel.main.streamCachingSpoolUsedHeapMemoryLimit

Which heap size the streamCachingSpoolUsedHeapMemoryThreshold percentage is taken of: Max (the maximum heap size, the default) or Committed (the heap memory the JVM has committed).

Max

String

camel.main.streamCachingSpoolUsedHeapMemoryThreshold

Sets a percentage (1-99) of used heap memory threshold to activate stream caching spooling to disk.

int

camel.main.streamCachingStatisticsEnabled

Sets whether stream caching statistics is enabled.

false

boolean

camel.main.threadNamePattern

Sets the thread name pattern used for creating the full thread name. The default pattern is: Camel (camelId) thread #counter - name Where camelId is the name of the CamelContext. and counter is a unique incrementing counter. and name is the regular thread name. You can also use longName which is the long thread name which can includes endpoint parameters etc.

String

camel.main.tracing

Sets whether tracing is enabled or not. Default is false.

false

boolean

camel.main.tracingLoggingFormat

To use a custom tracing logging format. The default format (arrow, routeId, label) is: %-4.4s [%-12.12s] [%-33.33s]

%-4.4s [%-12.12s] [%-33.33s]

String

camel.main.tracingPattern

Tracing pattern to match which node EIPs to trace. For example to match all To EIP nodes, use to*. The pattern matches by node and route id’s Multiple patterns can be separated by comma.

String

camel.main.tracingStandby

Whether to set tracing on standby. If on standby then the tracer is installed and made available. Then the tracer can be enabled later at runtime via JMX or via Tracer#setEnabled(boolean) .

false

boolean

camel.main.tracingTemplates

Whether tracing should trace inner details from route templates (or kamelets). Turning this on increases the verbosity of tracing by including events from internal routes in the templates or kamelets. Default is false.

false

boolean

camel.main.typeConverterStatisticsEnabled

Sets whether type converter statistics is enabled. By default the type converter utilization statistics is disabled. Notice: If enabled then there is a slight performance impact under very heavy load.

false

boolean

camel.main.useBreadcrumb

Whether to set the breadcrumbId header on each incoming message that does not have one, to the exchange id, so the message can be tracked across routes and systems. The default is false.

false

boolean

camel.main.useDataType

Whether to enable using data type on Camel messages. Data type are automatic turned on if one or more routes has been explicit configured with input and output types. Otherwise data type is default off.

false

boolean

camel.main.useMdcLogging

To turn on MDC logging (deprecated, use camel-mdc component instead)

false

boolean

camel.main.uuidGenerator

The UUID generator Camel uses for the ids of exchanges, messages and other objects: default (32 characters), short (16 characters), classic (32 characters or longer, as in Camel 2.x), simple (an incrementing counter, unique only within the CamelContext), or off (no ids for exchanges, only for performance profiling).

default

String

camel.main.virtualThreadsEnabled

Whether to enable virtual threads when creating thread pools. When enabled, Camel will use virtual threads instead of platform threads for its thread pools. This can also be enabled via the JVM system property camel.threads.virtual.enabled=true . This option must be read early during bootstrap, so it is set as a system property before thread pools are created.

false

boolean

camel.main.yamlDslCompactNotationWarn

Whether to log a WARN when YAML DSL routes use compact (shorthand) notation instead of the canonical (explicit/normalized) form. The canonical style is recommended as it is more tooling and AI friendly. Use Camel CLI to normalize existing routes: camel validate normalize <file>

true

boolean

Camel Startup Condition configurations

The camel.startupcondition supports 7 options, which are listed below.

Name Description Default Type

camel.startupcondition.customClassNames

Comma-separated fully qualified class names of custom startup conditions, which implement org.apache.camel.spi.StartupCondition.

String

camel.startupcondition.enabled

Whether to check the startup conditions before Camel starts the routes. Camel waits until all conditions pass, or the timeout is reached and onTimeout applies.

false

boolean

camel.startupcondition.environmentVariableExists

The name of an environment variable that must exist, with a non-empty value, before Camel continues to start.

String

camel.startupcondition.fileExists

The name of a file that must exist before Camel continues to start.

String

camel.startupcondition.interval

Interval in millis between checking conditions.

500

int

camel.startupcondition.onTimeout

What to do when the startup conditions do not pass within the timeout: fail (Camel fails to start with an exception), stop (Camel does not start, and stops), or ignore (log a WARN and continue to start).

stop

String

camel.startupcondition.timeout

The total time in millis to wait for all startup conditions to pass, before onTimeout applies.

20000

int

Camel Route Controller configurations

The camel.routecontroller supports 12 options, which are listed below.

Name Description Default Type

camel.routecontroller.backOffDelay

The delay in millis between the attempts to restart a route that failed to start. With a backOffMultiplier above 1 this is the first delay, which then grows. The default is 2000.

2000

long

camel.routecontroller.backOffMaxAttempts

The maximum number of attempts to restart a route that failed to start, after which the controller gives up and the route stays stopped. The default 0 means no limit.

long

camel.routecontroller.backOffMaxDelay

The maximum delay in millis between the attempts to restart a route, as a cap when backOffMultiplier makes the delay grow. The default 0 means no maximum.

long

camel.routecontroller.backOffMaxElapsedTime

The maximum time in millis to keep trying to restart a route that failed to start, after which the controller gives up and the route stays stopped. The default 0 means no limit.

long

camel.routecontroller.backOffMultiplier

The multiplier applied to the delay after each failed attempt to restart a route, for exponential backoff. The default 1 keeps the same delay between the attempts.

double

camel.routecontroller.enabled

To enable using supervising route controller which allows Camel to start up and then, the controller takes care of starting the routes in a safe manner. This can be used when you want to start up Camel despite a route may otherwise fail fast during startup and cause Camel to fail to start up as well. By delegating the route startup to the supervising route controller, then it manages the startup using a background thread. The controller allows to be configured with various settings to attempt to restart failing routes.

false

boolean

camel.routecontroller.excludeRoutes

Pattern for filtering routes to be excluded as supervised. The pattern is matching on route id, and endpoint uri for the route. Multiple patterns can be separated by comma. For example to exclude all JMS routes, you can say jms:*. And to exclude routes with specific route ids mySpecialRoute,myOtherSpecialRoute. The pattern supports wildcards and uses the matcher from org.apache.camel.support.PatternHelper#matchPattern.

String

camel.routecontroller.includeRoutes

Pattern for filtering routes to be included as supervised. The pattern is matching on route id, and endpoint uri for the route. Multiple patterns can be separated by comma. For example to include all kafka routes, you can say kafka:*. And to include routes with specific route ids myRoute,myOtherRoute. The pattern supports wildcards and uses the matcher from org.apache.camel.support.PatternHelper#matchPattern.

String

camel.routecontroller.initialDelay

The delay in millis, after CamelContext has started, before the route controller starts the supervised routes.

long

camel.routecontroller.threadPoolSize

The number of threads used by the route controller scheduled thread pool that are used for restarting routes. The pool uses 1 thread by default, but you can increase this to allow the controller to concurrently attempt to restart multiple routes in case more than one route has problems starting.

1

int

camel.routecontroller.unhealthyOnExhausted

Whether to mark the route as unhealthy (down) when all restarting attempts (backoff) have failed and the route is not successfully started and the route manager is giving up. If setting this to false will make health checks ignore this problem and allow to report the Camel application as UP.

true

boolean

camel.routecontroller.unhealthyOnRestarting

Whether to mark the route as unhealthy (down) when the route failed to initially start, and is being controlled for restarting (backoff). If setting this to false will make health checks ignore this problem and allow to report the Camel application as UP.

true

boolean

Camel Embedded HTTP Server (only for standalone; not Spring Boot or Quarkus) configurations

The camel.server supports 61 options, which are listed below.

Name Description Default Type

camel.server.authenticationEnabled

Whether the embedded HTTP server authenticates the requests to authenticationPath: with HTTP Basic authentication when basicPropertiesFile is set, else with JWT bearer tokens when jwtKeystoreType is set. When neither is set, the server logs a warning and starts without authentication, or fails to start in the prod profile.

false

boolean

camel.server.authenticationPath

The path that requires authentication when authenticationEnabled is set, relative to the context path (path), such as /api/. A path ending with * also matches all the paths below it. When not set, / is used, so every request requires authentication.

String

camel.server.authenticationRealm

The realm sent in the WWW-Authenticate header of an HTTP 401 response. The default is vertx-web for HTTP Basic authentication; with JWT authentication the header is only sent when a realm is set.

String

camel.server.basicPropertiesFile

Properties file with the users, passwords and roles for HTTP Basic authentication, in the format of the Vert.x PropertyFileAuthentication (user.name=password,role), as a file path or classpath resource. Setting it selects HTTP Basic authentication when authenticationEnabled is set.

String

camel.server.corsAccessControlMaxAge

How long (in seconds) a browser may cache the answer of a preflight request, sent as the Access-Control-Max-Age header. When not set, the header is not sent.

Long

camel.server.corsEnabled

Whether the embedded HTTP server handles CORS (Cross-Origin Resource Sharing): it answers preflight requests and adds the Access-Control-* headers to the responses of requests with an Origin header.

false

boolean

camel.server.corsExposedHeaders

Comma-separated list of the HTTP response headers a browser may expose to the calling script, sent as the Access-Control-Expose-Headers header.

String

camel.server.corsHeaders

Comma-separated list of the HTTP headers allowed in a CORS request. When not set, the headers of the Access-Control-Request-Headers header of the preflight request are allowed.

String

camel.server.corsMethods

Comma-separated list of the HTTP methods (such as GET,POST) allowed in a CORS request. When not set, the methods of the Access-Control-Request-Method header of the preflight request are allowed.

String

camel.server.corsOrigins

Comma-separated list of origins (such as https://app.example.com) allowed to call the embedded HTTP server. A request from an origin in the list is answered with Access-Control-Allow-Origin and Access-Control-Allow-Credentials=true. When not set, the origin of every request is allowed (reflected back), without credentials.

String

camel.server.deleteUploadedFilesOnEnd

Whether the uploaded files are deleted from the file upload directory when the response has been sent.

true

boolean

camel.server.enabled

Whether embedded HTTP server is enabled. By default, the server is not enabled.

false

boolean

camel.server.fileUploadDirectory

Directory to temporary store file uploads while Camel routes the incoming request. If no directory has been explicit configured, then a temporary directory is created in the java.io.tmpdir directory.

String

camel.server.fileUploadEnabled

Whether to enable file uploads being supported (such as POST multipart/form-data) and stored into a temporary directory.

true

boolean

camel.server.host

The host name or IP address the embedded HTTP server binds to. The default 0.0.0.0 binds to all network interfaces.

0.0.0.0

String

camel.server.jwtAllowMissingIssuerAndAudience

Whether JWT authentication is allowed to run without an expected issuer or audience. By default the embedded server fails to start when a JWT keystore is configured but neither jwtIssuer nor jwtAudience is set, because the tokens would only be checked for signature and expiry. Enable this to accept that and validate signature and expiry only.

false

boolean

camel.server.jwtAudience

Expected JWT audience (aud claim) for token validation. Multiple values can be separated by comma. When set, tokens whose audience does not contain any of the configured values are rejected.

String

camel.server.jwtIssuer

Expected JWT issuer (iss claim) for token validation. When set, tokens whose issuer does not match are rejected.

String

camel.server.jwtKeystorePassword

The password of the JWT keystore (jwtKeystorePath), also used to read its keys.

String

camel.server.jwtKeystorePath

The keystore with the keys for JWT token validation, as a file path or classpath resource. Vert.x only uses the keys whose alias is the name of a JWT algorithm, such as RS256 or HS256.

String

camel.server.jwtKeystoreType

The type of the keystore with the keys for JWT token validation, such as jks or pkcs12. Setting it selects JWT bearer token authentication when authenticationEnabled is set and basicPropertiesFile is not; jwtKeystorePath and jwtKeystorePassword are then required.

String

camel.server.maxBodySize

Maximum size in bytes of a request body the embedded HTTP server accepts; a larger request is rejected with HTTP 413. When not set, the Vert.x default of 10 MB applies; -1 means no limit.

Long

camel.server.mcpAllowedHosts

Comma-separated list of hosts allowed in the Host header of a request to the MCP endpoint on the Vert.x streamable transport, such as mcp.example.com or localhost:*. Each entry is a host, or a host and a port, where the port may be an asterisk to match any port (or none). The host is compared ignoring case. When set, a request whose Host header is missing or not in the list is rejected with HTTP 421 (Misdirected Request), before its body is read and before any session is created; this protects a server on a private address against DNS rebinding. An entry with a scheme, a path or a wildcard for all hosts fails the startup. When not set, the Host header is not checked.

String

camel.server.mcpAllowedOrigins

Comma-separated list of origins allowed to call the MCP endpoint on the Vert.x streamable transport. Each entry is an exact origin (scheme, host and port), or ends with a colon and an asterisk to match any port. Scheme and host are compared ignoring case, and a default port (80 for http, 443 for https) may be left out. A wildcard for all origins is not supported: an entry that is not of the form scheme://host or scheme://host:port fails the startup. A request without an Origin header is always served; a request with an Origin header that is not allowed is rejected with HTTP 403. When not set, only loopback origins are allowed (localhost, 127.0.0.1 and ::1 on any port).

String

camel.server.mcpEnabled

Whether to expose ai-tool routes as MCP tools, ai-resource routes as MCP resources and ai-prompt routes as MCP prompts. Requires camel-mcp-server on the classpath. Use mcpTransport to choose streamable HTTP (default) or stdio for IDE subprocess integration. By default, the MCP server is not enabled.

false

boolean

camel.server.mcpInstructions

Top-level MCP instructions returned to clients on initialize.

String

camel.server.mcpOauthProfile

Name of the camel-oauth profile used to authenticate OAuth bearer tokens on the MCP HTTP endpoint.

String

camel.server.mcpPath

HTTP path where the MCP endpoint is served.

/mcp

String

camel.server.mcpPromptTimeout

Per-request MCP prompt execution timeout in milliseconds. A request exceeding the timeout returns an error to the MCP client; the underlying route may continue running until it completes.

20000

long

camel.server.mcpProtocolEra

The MCP protocol versions served by the Vert.x streamable transport. dual (default) serves, on the same endpoint, the protocol versions whose clients open with an initialize handshake (2025-11-25 and earlier), with a session, and protocol version 2026-07-28, without a session, choosing for each request from the protocol version it carries. legacy serves only the former, as before Camel 4.24. modern serves only protocol version 2026-07-28 and answers an initialize request with an error that lists the supported versions. Serving protocol version 2026-07-28 is a preview: it is built on an API of the MCP Java SDK that may still change.

dual

String

camel.server.mcpRequiredScopes

Comma-separated OAuth scopes required to access the MCP HTTP endpoint. Requires camel.server.mcp-oauth-profile to be configured.

String

camel.server.mcpResourceTimeout

Per-read MCP resource execution timeout in milliseconds. A read exceeding the timeout returns an error to the MCP client; the underlying route keeps running until it completes on its own.

20000

long

camel.server.mcpResourceUri

Canonical public HTTPS resource identifier for the MCP endpoint, used by RFC 9728 metadata. Requires camel.server.mcp-oauth-profile to be configured. It is never inferred from HTTP request headers.

String

camel.server.mcpServerDescription

MCP server description advertised to clients in serverInfo.description .

String

camel.server.mcpServerIcons

JSON array of MCP server icons advertised to clients in serverInfo.icons . Each entry must include a src URL and may include mimeType , sizes and theme .

String

camel.server.mcpServerName

MCP server name advertised to clients. Defaults to the CamelContext name.

String

camel.server.mcpServerTitle

MCP server display title advertised to clients in serverInfo.title .

String

camel.server.mcpServerWebsiteUrl

MCP server website URL advertised to clients in serverInfo.websiteUrl .

String

camel.server.mcpSessionIdleTtl

Idle TTL in milliseconds for MCP sessions on the Vert.x streamable transport. Sessions with no activity for longer than this interval are evicted. 0 disables idle eviction.

300000

long

camel.server.mcpSessionKeepAliveInterval

Keep-alive ping interval in milliseconds for MCP sessions on the Vert.x streamable transport. Dead sessions are evicted after consecutive ping failures. 0 disables keep-alive pings.

30000

long

camel.server.mcpStateless

Whether the Vert.x streamable transport serves the clients that open with an initialize handshake without a session, as the MCP streamable HTTP transport allows. When true, such a client gets no Mcp-Session-Id: each request is served on its own, so a restart of the application, or a request reaching another instance, does not end its session, and several instances need no session affinity. Such a client then receives no notifications from the server, such as a changed list of tools, and a GET or DELETE on the MCP endpoint is answered with HTTP 405. The session keep-alive and idle TTL options do not apply. Clients of protocol version 2026-07-28 never get a session.

false

boolean

camel.server.mcpTags

Comma-separated list of tag patterns selecting ai-tool routes as MCP tools, ai-resource routes as MCP resources and ai-prompt routes as MCP prompts. Matching is case-insensitive and supports exact match, wildcard prefix ( foo* ), and * to match all tags. Only routes registered under a matching tag are exposed; the untagged default pools are never exposed. When not set, nothing is exposed.

String

camel.server.mcpToolTimeout

Per-call MCP tool execution timeout in milliseconds. A call exceeding the timeout returns an error result to the MCP client; the underlying route keeps running until it completes on its own.

20000

long

camel.server.mcpTransport

MCP transport selection: http (streamable HTTP on the embedded server, serving tools, resources and prompts) or stdio (JSON-RPC on process stdin/stdout for local agent subprocesses, serving tools and prompts only).

http

String

camel.server.mergeFormAttributes

Whether the form attributes of a request (application/x-www-form-urlencoded or multipart/form-data) are merged into the request parameters.

true

boolean

camel.server.path

The context path under which the embedded HTTP server serves all its endpoints, such as /api. The default / is the root path.

/

String

camel.server.port

Port to use for binding embedded HTTP server. Use 0 to dynamic assign a free random port number.

8080

int

camel.server.preallocateBodyBuffer

Whether the buffer for the request body is pre-allocated, using the Content-Length header of the request to size it.

true

boolean

camel.server.sessionCookieHttpOnly

Whether the session cookie has the HttpOnly flag, so scripts in the browser cannot read it.

true

boolean

camel.server.sessionCookieName

The name of the session cookie.

vertx-web.session

String

camel.server.sessionCookiePath

The path of the session cookie.

/

String

camel.server.sessionCookieSameSite

The SameSite attribute of the session cookie: strict, lax or none.

strict

String

camel.server.sessionCookieSecure

Whether the session cookie has the Secure flag, so browsers only send it over HTTPS.

false

boolean

camel.server.sessionEnabled

Whether the embedded HTTP server keeps a session for each client, identified by a session cookie.

false

boolean

camel.server.sessionIdMinLength

The minimum length of the session id.

16

int

camel.server.sessionStoreType

Where the sessions are stored: local (in memory of this application) or clustered (in the cluster of a clustered Vert.x instance, which must be provided in the registry).

local

String

camel.server.sessionTimeout

The time in milliseconds after which a session without activity expires.

1800000

long

camel.server.staticContextPath

The context-path to use for serving static content. By default, the root path is used. And if there is an index.html page then this is automatically loaded.

/

String

camel.server.staticEnabled

Whether serving static files is enabled. If enabled then Camel can host html/js and other web files that makes it possible to include small web applications.

false

boolean

camel.server.staticSourceDir

Directory on the file system to serve the static content from, when staticEnabled is set. A file that is not in it is looked up on the classpath (at its root, in META-INF/resources, or under this directory name). When not set, files are served from the working directory, else from the classpath.

String

camel.server.useGlobalSslContextParameters

Whether the embedded HTTP server serves HTTPS with the global SSL configuration (the camel.ssl options). When this option is not set, it is turned on automatically when the global SSL configuration is enabled.

false

boolean

Camel Embedded HTTP management Server (only for standalone; not Spring Boot or Quarkus) configurations

The camel.management supports 31 options, which are listed below.

Name Description Default Type

camel.management.authenticationEnabled

Whether the embedded HTTP management server authenticates the requests to authenticationPath: with HTTP Basic authentication when basicPropertiesFile is set, else with JWT bearer tokens when jwtKeystoreType is set. When neither is set, the server logs a warning and starts without authentication, or fails to start in the prod profile.

false

boolean

camel.management.authenticationPath

The path that requires authentication when authenticationEnabled is set, relative to the context path (path), such as /api/. A path ending with * also matches all the paths below it. When not set, / is used, so every request requires authentication.

String

camel.management.authenticationRealm

The realm sent in the WWW-Authenticate header of an HTTP 401 response. The default is vertx-web for HTTP Basic authentication; with JWT authentication the header is only sent when a realm is set.

String

camel.management.basicPropertiesFile

Properties file with the users, passwords and roles for HTTP Basic authentication, in the format of the Vert.x PropertyFileAuthentication (user.name=password,role), as a file path or classpath resource. Setting it selects HTTP Basic authentication when authenticationEnabled is set.

String

camel.management.devConsoleEnabled

Whether to enable developer console (not intended for production use). Dev console must also be enabled on CamelContext. For example by setting camel.context.dev-console=true in application.properties, or via code camelContext.setDevConsole(true);. If enabled then you can access a basic developer console on context-path: /q/dev.

false

boolean

camel.management.downloadEnabled

Whether to enable file download via HTTP. This makes it possible to browse and download resource source files such as Camel XML or YAML routes. Only enable this for development, troubleshooting or special situations for management and monitoring.

false

boolean

camel.management.enabled

Whether the embedded HTTP management server is enabled. It serves the management endpoints, such as health checks and metrics, that the other camel.management options turn on. By default, the server is not enabled.

false

boolean

camel.management.healthCheckEnabled

Whether to enable health-check console. If enabled then you can access health-check status on context-path: /observe/health

false

boolean

camel.management.healthPath

The path endpoint used to expose the health status

/observe/health

String

camel.management.host

The host name or IP address the embedded HTTP management server binds to. The default 0.0.0.0 binds to all network interfaces.

0.0.0.0

String

camel.management.infoEnabled

Whether to enable info console. If enabled then you can see some basic Camel information at /observe/info

false

boolean

camel.management.infoPath

The path endpoint used to expose the info status

/observe/info

String

camel.management.jolokiaEnabled

Whether to enable jolokia. If enabled then you can access jolokia api on context-path: /observe/jolokia

false

boolean

camel.management.jolokiaPath

The path endpoint used to expose the jolokia data.

/observe/jolokia

String

camel.management.jwtAllowMissingIssuerAndAudience

Whether JWT authentication is allowed to run without an expected issuer or audience. By default the management server fails to start when a JWT keystore is configured but neither jwtIssuer nor jwtAudience is set, because the tokens would only be checked for signature and expiry. Enable this to accept that and validate signature and expiry only.

false

boolean

camel.management.jwtAudience

Expected JWT audience (aud claim) for token validation. Multiple values can be separated by comma. When set, tokens whose audience does not contain any of the configured values are rejected.

String

camel.management.jwtIssuer

Expected JWT issuer (iss claim) for token validation. When set, tokens whose issuer does not match are rejected.

String

camel.management.jwtKeystorePassword

The password of the JWT keystore (jwtKeystorePath), also used to read its keys.

String

camel.management.jwtKeystorePath

The keystore with the keys for JWT token validation, as a file path or classpath resource. Vert.x only uses the keys whose alias is the name of a JWT algorithm, such as RS256 or HS256.

String

camel.management.jwtKeystoreType

The type of the keystore with the keys for JWT token validation, such as jks or pkcs12. Setting it selects JWT bearer token authentication when authenticationEnabled is set and basicPropertiesFile is not; jwtKeystorePath and jwtKeystorePassword are then required.

String

camel.management.mcpEnabled

Whether to expose dev/diagnostics MCP tools on this management server (requires camel-mcp-server on the classpath). Currently honored only when Camel JBang registers JbangDevMcpMainListener (for example camel run --mcp). For route-based MCP on the main HTTP server in plain camel-main, configure camel.server.mcpEnabled instead. Not intended for production use.

false

boolean

camel.management.mcpPath

HTTP path where the management MCP endpoint is served.

/mcp

String

camel.management.metricsEnabled

Whether to serve the metrics on the management server, at the path of camel.metrics.path (/observe/metrics by default).

false

boolean

camel.management.openapiUiEnabled

Whether to enable Swagger UI for REST DSL OpenAPI documents. If enabled then you can browse the API at context-path: /q/openapi. The OpenAPI document is expected at openapiUiSpecPath (by default /q/openapi.json from REST DSL apiContextPath ).

false

boolean

camel.management.openapiUiSpecPath

Path or URL of the OpenAPI document loaded by Swagger UI at /q/openapi.

/q/openapi.json

String

camel.management.path

The context path under which the embedded HTTP management server serves all its endpoints, such as /management. The default / is the root path.

/

String

camel.management.port

Port to use for binding embedded HTTP management server. Use 0 to dynamic assign a free random port number. When the embedded HTTP server is enabled with the same port (both default to 8080), the management endpoints are served by the HTTP server, which cannot apply a host, path, SSL or authentication of the management server’s own. The management server then fails to start when such a setting is configured. Use a different port to apply it.

8080

int

camel.management.sendEnabled

Whether to enable sending messages to Camel via HTTP. This makes it possible to use Camel to send messages to Camel endpoint URIs via HTTP.

false

boolean

camel.management.uploadEnabled

Whether to enable file upload via HTTP (not intended for production use). This functionality is for development to be able to reload Camel routes and code with source changes (if reload is enabled). If enabled then you can upload/delete files via HTTP PUT/DELETE on context-path: /q/upload/{name}. You must also configure the uploadSourceDir option.

false

boolean

camel.management.uploadSourceDir

The directory that files uploaded with HTTP PUT to /q/upload/{name} are written to, and deleted from with HTTP DELETE. Required when uploadEnabled is set.

String

camel.management.useGlobalSslContextParameters

Whether the embedded HTTP management server serves HTTPS with the global SSL configuration (the camel.ssl options). When this option is not set, it is turned on automatically when the global SSL configuration is enabled.

false

boolean

Camel Debugger configurations

The camel.debug supports 15 options, which are listed below.

Name Description Default Type

camel.debug.bodyIncludeFiles

Whether to include the message body of file based messages. The overhead is that the file content has to be read from the file.

true

boolean

camel.debug.bodyIncludeStreams

Whether to include the message body of stream based messages. If enabled then beware the stream may not be re-readable later. See more about Stream Caching.

false

boolean

camel.debug.bodyMaxChars

The maximum number of characters of the message body that the debugger shows; a longer body is clipped. 0 means no limit, and a negative value leaves the body out.

32768

int

camel.debug.breakpoints

Allows to pre-configure breakpoints (node ids) to use with debugger on startup. Multiple ids can be separated by comma. Use special value all_routes to add a breakpoint for the first node for every route, in other words this makes it easy to debug from the beginning of every route without knowing the exact node ids.

String

camel.debug.enabled

Whether to enable the debugger, which suspends exchanges at breakpoints so that tooling can inspect them and step through the routes.

false

boolean

camel.debug.fallbackTimeout

How long, in seconds, an exchange stays suspended at a breakpoint before it continues on its own, when the debugger does not resume it.

300

long

camel.debug.includeException

Whether to include the exception of a failed exchange in the message that the debugger shows.

true

boolean

camel.debug.includeExchangeProperties

Whether to include the exchange properties in the message that the debugger shows at a breakpoint.

true

boolean

camel.debug.includeExchangeVariables

Whether to include the exchange variables in the message that the debugger shows at a breakpoint.

true

boolean

camel.debug.jmxConnectorEnabled

Whether to create JMX connector that allows tooling to control the Camel debugger. This is what the IDEA and VSCode tooling is using.

true

boolean

camel.debug.jmxConnectorPort

Port number to expose a JMX RMI connector for tooling that needs to control the debugger.

1099

int

camel.debug.loggingLevel

The debugger logging level to use when logging activity.

INFO

LoggingLevel

camel.debug.singleStepIncludeStartEnd

Whether single step mode also suspends the exchange when it is created and when it is completed, as breakpoints at the start and the end of the route, so the incoming message and the result (the response body or the exception) can be inspected.

false

boolean

camel.debug.standby

Whether to install the debugger in standby mode: it is installed but not enabled, and can be enabled later from Java, JMX or tooling.

false

boolean

camel.debug.waitForAttach

Whether the debugger holds back the processing of messages at startup until a debugger client attaches, as the IDEA and VSCode tooling does.

false

boolean

Camel Tracer configurations

The camel.trace supports 14 options, which are listed below.

Name Description Default Type

camel.trace.backlogSize

How many of the last traced messages the tracer keeps, from 1 to 1000; older messages are dropped.

100

int

camel.trace.bodyIncludeFiles

Whether to include the message body of file based messages. The overhead is that the file content has to be read from the file.

true

boolean

camel.trace.bodyIncludeStreams

Whether to include the message body of stream based messages. If enabled then beware the stream may not be re-readable later. See more about Stream Caching.

false

boolean

camel.trace.bodyMaxChars

The maximum number of characters of the message body in a traced message; a longer body is clipped. 0 means no limit, and a negative value leaves the body out.

32768

int

camel.trace.enabled

Whether to enable the backlog tracer, which keeps the last traced messages of the steps of the routes in memory for tooling to read.

false

boolean

camel.trace.includeException

Whether to include the exception in the traced message, if the exchange failed.

true

boolean

camel.trace.includeExchangeProperties

Whether to include the exchange properties in the traced message

true

boolean

camel.trace.includeExchangeVariables

Whether to include the exchange variables in the traced message

true

boolean

camel.trace.removeOnDump

Whether all traced messages should be removed when the tracer is dumping. By default, the messages are removed, which means that dumping will not contain previous dumped messages.

true

boolean

camel.trace.standby

Whether to install the tracer in standby mode: it is installed but not enabled, and can be enabled later from Java, JMX or tooling.

false

boolean

camel.trace.traceFilter

A predicate that an exchange must match to be traced, in the simple language, or in another language with its name as prefix, such as jq:.foo. An exchange for which the predicate fails with an error is not traced.

String

camel.trace.tracePattern

Traces only the routes and nodes whose id matches one of the patterns, separated by commas. A pattern is an exact id, a wildcard such as foo* or a regular expression.

String

camel.trace.traceRests

Whether to trace the routes created from the Rest DSL.

true

boolean

camel.trace.traceTemplates

Whether to trace the routes created from route templates or Kamelets.

false

boolean

Camel Security Policy configurations

The camel.security supports 6 options, which are listed below.

Name Description Default Type

camel.security.allowedProperties

Comma-separated list of property keys to exclude from security policy checks. Use full property paths to allow specific properties regardless of the configured policy.

String

camel.security.insecureDevPolicy

The policy (allow, warn or fail) for options of features meant only for development, such as devConsoleEnabled and uploadEnabled. When not set, the global policy applies, except in the dev profile, where they are allowed.

String

camel.security.insecureSerializationPolicy

The policy (allow, warn or fail) for options that turn on Java object deserialization, such as allowJavaSerializedObject=true. When not set, the global policy applies.

String

camel.security.insecureSslPolicy

The policy (allow, warn or fail) for options that turn off certificate validation or hostname verification, such as trustAllCertificates=true. When not set, the global policy applies.

String

camel.security.policy

How Camel reacts at startup when it detects an insecure configuration: allow (accept it), warn (log a warning) or fail (stop the startup with an error). The default is warn, or fail in the prod profile. It applies to each category whose own policy is not set.

warn

String

camel.security.secretPolicy

The policy (allow, warn or fail) for sensitive values, such as passwords and tokens, configured as plain text instead of as a vault reference or environment variable placeholder. When not set, the global policy applies.

String

Camel SSL configurations

The camel.ssl supports 28 options, which are listed below.

Name Description Default Type

camel.ssl.certAlias

An optional certificate alias to use. This is useful when the keystore has multiple certificates.

String

camel.ssl.cipherSuites

List of TLS/SSL cipher suite algorithm names. Multiple names can be separated by comma.

String

camel.ssl.cipherSuitesExclude

Regular expressions, separated by comma, of the TLS cipher suite names to disable. Not used when cipherSuites is set.

String

camel.ssl.cipherSuitesInclude

Regular expressions, separated by comma, of the TLS cipher suite names to enable. Not used when cipherSuites is set.

String

camel.ssl.clientAuthentication

Whether a server that uses the global SSL configuration asks the client for a certificate: NONE (default) does not ask, WANT asks but accepts a client without one, and REQUIRE rejects a client without a valid certificate.

NONE

String

camel.ssl.enabled

Whether to create the global SSL configuration of the CamelContext from the camel.ssl options. Components and the embedded HTTP servers use it when their useGlobalSslContextParameters option is enabled. It needs keyStore, selfSigned, trustStore or trustAllCertificates; when none is set, a warning is logged and no SSL configuration is created.

false

boolean

camel.ssl.keyManagerAlgorithm

The algorithm of the KeyManagerFactory, such as PKIX or SunX509. When not set, the default of the JVM (KeyManagerFactory.getDefaultAlgorithm()) is used. See https://docs.oracle.com/en/java/javase/21/docs/specs/security/standard-names.html

String

camel.ssl.keyManagerProvider

The name of the security provider used to create the KeyManagerFactory, one of java.security.Security.getProviders(). When not set, the highest-priority provider that supports the key manager algorithm is used.

String

camel.ssl.keyStore

The key store with the private key and certificate of this application, as a resource: classpath:name (the default when there is no prefix), file:name, http:url, or ref:name to use a KeyStore bean from the registry.

String

camel.ssl.keystorePassword

The password of the key store (keyStore), also used as the password of its private key.

String

camel.ssl.keyStoreProvider

The name of the security provider used to create the KeyStore, one of java.security.Security.getProviders(). When not set, the highest-priority provider that supports the key store type is used.

String

camel.ssl.keyStoreType

The type of the key store, such as PKCS12 or JKS. When not set, the default type of the JVM (KeyStore.getDefaultType(), PKCS12) is used. See https://docs.oracle.com/en/java/javase/21/docs/specs/security/standard-names.html

String

camel.ssl.namedGroups

List of TLS/SSL named groups (key exchange groups). Multiple names can be separated by comma. Named groups control which key exchange algorithms are available during the TLS handshake, including post-quantum hybrid groups such as X25519MLKEM768.

String

camel.ssl.namedGroupsExclude

Regular expressions, separated by comma, of the TLS named groups to disable. Not used when namedGroups is set.

String

camel.ssl.namedGroupsInclude

Regular expressions, separated by comma, of the TLS named groups to enable. Not used when namedGroups is set.

String

camel.ssl.provider

The name of the security provider used to create the SSLContext, one of java.security.Security.getProviders(). When not set, the highest-priority provider that supports the secure socket protocol is used.

String

camel.ssl.secureRandomAlgorithm

The algorithm of the SecureRandom that the SSLContext uses, such as DRBG or SHA1PRNG. When not set, the default SecureRandom of the JVM is used. See https://docs.oracle.com/en/java/javase/21/docs/specs/security/standard-names.html

String

camel.ssl.secureRandomProvider

The name of the security provider used to create the SecureRandom, one of java.security.Security.getProviders(), used together with secureRandomAlgorithm. When not set, the highest-priority provider that supports the algorithm is used.

String

camel.ssl.secureSocketProtocol

The protocol for the secure sockets created by the SSLContext. See https://docs.oracle.com/en/java/javase/21/docs/specs/security/standard-names.html

TLSv1.3

String

camel.ssl.selfSigned

Whether to generate a self-signed certificate for development use when no keystore is configured. This can be used in development environment to easily enable HTTPS without providing a keystore. Do NOT use this in production as the certificate is not trusted and is regenerated on each restart.

false

boolean

camel.ssl.selfSignedKeyType

The key algorithm to use when generating the self-signed certificate for development use (requires selfSigned to be enabled). Supported values are EC (default, NIST P-256) and RSA (2048-bit).

EC

String

camel.ssl.sessionTimeout

Timeout in seconds to use for SSLContext. The default is 24 hours.

86400

int

camel.ssl.signatureSchemes

List of TLS/SSL signature schemes. Multiple names can be separated by comma. Signature schemes control which signature algorithms are available during the TLS handshake, including post-quantum signature algorithms such as ML-DSA.

String

camel.ssl.signatureSchemesExclude

Regular expressions, separated by comma, of the TLS signature schemes to disable. Not used when signatureSchemes is set.

String

camel.ssl.signatureSchemesInclude

Regular expressions, separated by comma, of the TLS signature schemes to enable. Not used when signatureSchemes is set.

String

camel.ssl.trustAllCertificates

Allows to trust all SSL certificates without performing certificate validation. This can be used in development environment but may expose the system to security risks. Notice that if the trustAllCertificates option is set to true then the trustStore/trustStorePassword options are not in use.

false

boolean

camel.ssl.trustStore

The trust store with the trusted certificates, as a resource: classpath:name (the default when there is no prefix), file:name, http:url, or ref:name or #bean:name to use a KeyStore bean from the registry. It is loaded with the default key store type of the JVM.

String

camel.ssl.trustStorePassword

The password of the trust store (trustStore).

String

Camel Thread Pool configurations

The camel.threadpool supports 8 options, which are listed below.

Name Description Default Type

camel.threadpool.allowCoreThreadTimeOut

Whether the core threads of the default thread pool profile also stop when they are idle longer than keepAliveTime. The default is true.

false

Boolean

camel.threadpool.config

Thread pool profiles by id, each configured with the same options; an option that a profile does not set is taken from the default thread pool profile.

Map

camel.threadpool.keepAliveTime

How long idle threads above the core pool size are kept alive in the default thread pool profile, in timeUnit. The default is 60 (seconds).

Long

camel.threadpool.maxPoolSize

The maximum pool size of the default thread pool profile. The default is 20.

Integer

camel.threadpool.maxQueueSize

Sets the default maximum number of tasks in the work queue. Use 0 or -1 for no work queue: each task goes directly to a thread, up to maxPoolSize threads, and then the rejected policy applies. Use Integer.MAX_VALUE for an unbounded queue. For a scheduled thread pool, 0 or -1 means the queue is not limited.

Integer

camel.threadpool.poolSize

The core pool size (the number of threads to keep in the pool) of the default thread pool profile. The default is 10.

Integer

camel.threadpool.rejectedPolicy

What the default thread pool profile does with a task when all threads are busy and the queue is full: Abort rejects the task, CallerRuns runs it in the calling thread, and Block waits until there is room in the queue. The default is CallerRuns.

ThreadPoolRejectedPolicy

camel.threadpool.timeUnit

The time unit of keepAliveTime in the default thread pool profile. The default is SECONDS.

TimeUnit

Camel Health Check configurations

The camel.health supports 8 options, which are listed below.

Name Description Default Type

camel.health.consumersEnabled

Whether the consumers health check is enabled, which reports the health of the consumer of each route (for the components that support it).

true

Boolean

camel.health.enabled

Whether health check is enabled globally

true

Boolean

camel.health.excludePattern

Comma-separated patterns of the ids of the health checks that Camel does not invoke. A pattern matches by exact match, wildcard or regular expression; for route, consumer and producer health checks it also matches the id without the route:, consumer: or producer: prefix.

String

camel.health.exposureLevel

Sets the level of details to exposure as result of invoking health checks. There are the following levels: full, default, oneline The full level will include all details and status from all the invoked health checks. The default level will report UP if everything is okay, and only include detailed information for health checks that was DOWN. The oneline level will only report either UP or DOWN.

default

String

camel.health.initialState

The initial state of health-checks (readiness). There are the following states: UP, DOWN, UNKNOWN. By default, the state is DOWN, is regarded as being pessimistic/careful. This means that the overall health checks may report as DOWN during startup and then only if everything is up and running flip to being UP. Setting the initial state to UP, is regarded as being optimistic. This means that the overall health checks may report as UP during startup and then if a consumer or other service is in fact un-healthy, then the health-checks can flip being DOWN. Setting the state to UNKNOWN means that some health-check would be reported in unknown state, especially during early bootstrap where a consumer may not be fully initialized or validated a connection to a remote system. This option allows to pre-configure the state for different modes.

down

String

camel.health.producersEnabled

Whether the producers health check is enabled, which reports the health of the producers (for the components that support it). The default is false.

false

Boolean

camel.health.registryEnabled

Whether the health checks bound in the Camel registry are enabled.

true

Boolean

camel.health.routesEnabled

Whether the routes health check is enabled, which reports the status of each route.

true

Boolean

Camel Rest-DSL configurations

The camel.rest supports 31 options, which are listed below.

Name Description Default Type

camel.rest.apiComponent

The name of the module that serves the API documentation at apiContextPath, such as openapi (the default, from camel-openapi-java).

String

camel.rest.apiContextPath

The path, such as /api-doc, where the REST DSL serves the API documentation of the REST services, as an OpenAPI document. The API documentation is only served when this option is set. This requires camel-openapi-java on the classpath. The document is JSON by default, or YAML when the request path ends with .yaml. The path is relative to contextPath, when that option is set.

String

camel.rest.apiContextRouteId

Sets the route id to use for the route that services the REST API. The route will by default use an auto assigned route id.

String

camel.rest.apiHost

The hostname to show in the API documentation, instead of the hostname Camel computes.

String

camel.rest.apiProperties

Additional options of the API documentation (camel-openapi-java), such as api.title, api.version and api.description.

Map

camel.rest.apiVendorExtension

Whether vendor extension is enabled in the Rest APIs. If enabled then Camel will include additional information as vendor extension (eg keys starting with x-) such as route ids, class names etc. Not all 3rd party API gateways and tools supports vendor-extensions when importing your API docs.

false

boolean

camel.rest.bindingMode

The binding mode for automatic marshalling and unmarshalling of request and response bodies: off (default) disables binding, auto detects JSON or XML from the Content-Type header, json binds JSON only, xml binds XML only, and json_xml supports both JSON and XML.

RestBindingMode.off

RestBindingMode

camel.rest.bindingPackageScan

Packages, separated by comma, to scan for the POJO classes that the binding of contract-first REST services (the rest-openapi component) maps the request and response bodies to, by the schema name. Used when the rest-openapi component has no bindingPackageScan of its own.

String

camel.rest.clientRequestValidation

Whether to enable validation of the client request to check: 1) Content-Type header matches what the Rest DSL consumes; returns HTTP Status 415 if validation error. 2) Accept header matches what the Rest DSL produces; returns HTTP Status 406 if validation error. 3) Missing required data (query parameters, HTTP headers, body); returns HTTP Status 400 if validation error. 4) Parsing error of the message body (JSon, XML or Auto binding mode must be enabled); returns HTTP Status 400 if validation error.

false

boolean

camel.rest.clientResponseValidation

Whether to check the response Camel returns to the client: 1) the status code and Content-Type match the response messages of the Rest DSL. 2) the headers of the Rest DSL response message are present. 3) a JSON body is valid JSON. Returns HTTP status 500 when a check fails.

false

boolean

camel.rest.component

The Camel component that hosts the REST services (the REST consumer), such as platform-http, netty-http, jetty, servlet or undertow. When not set, Camel looks up a component that supports the Rest DSL in the registry or on the classpath.

String

camel.rest.componentProperties

Additional options to set on the Camel component of the REST services, by option name.

Map

camel.rest.consumerProperties

Additional options to set on the consumers of the REST services, by option name.

Map

camel.rest.contextPath

Sets a leading context-path the REST services will be using. This can be used when using components such as camel-servlet where the deployed web application is deployed using a context-path. Or for components such as camel-jetty or camel-netty-http that includes a HTTP server.

String

camel.rest.corsHeaders

The CORS headers to send when enableCORS is set, by header name: Access-Control-Allow-Origin, Access-Control-Allow-Methods, Access-Control-Allow-Headers, Access-Control-Max-Age and Access-Control-Allow-Credentials. A header that is not set gets its default value, and Access-Control-Allow-Credentials is only sent when set.

Map

camel.rest.dataFormatProperties

Additional options to set on the data formats of the binding, by option name, such as prettyPrint=true. Prefix a key with json.in., json.out., xml.in. or xml.out. to set it only on the data format of the incoming or outgoing JSON or XML body.

Map

camel.rest.enableCORS

Whether to add the CORS headers (Access-Control-Allow-*) to the responses of the REST services, with the values of corsHeaders. This option is default false.

false

boolean

camel.rest.enableNoContentResponse

Whether to return HTTP 204 with an empty body when a response contains an empty JSON object or XML root object. The default value is false.

false

boolean

camel.rest.endpointProperties

Additional options to set on the endpoints of the REST services, by option name.

Map

camel.rest.host

The hostname to use for exposing the REST services. When not set, it is computed by hostNameResolver. Components that serve the REST services on a shared HTTP server, such as platform-http and servlet, do not use it.

String

camel.rest.hostNameResolver

How to compute the hostname of the REST services when host is not set: allLocalIp (0.0.0.0, all local IP addresses; the default), localIp (the IP address of this host), localHostName (the name of this host) or none.

RestHostNameResolver.allLocalIp

RestHostNameResolver

camel.rest.inlineRoutes

Inline routes in rest-dsl which are linked using direct endpoints. Each service in Rest DSL is an individual route, meaning that you would have at least two routes per service (rest-dsl, and the route linked from rest-dsl). By inlining (default) allows Camel to optimize and inline this as a single route, however this requires to use direct endpoints, which must be unique per service. If a route is not using direct endpoint then the rest-dsl is not inlined, and will become an individual route. This option is default true.

true

boolean

camel.rest.jsonDataFormat

The name of the JSON data format the binding uses, such as jackson (the default), jsonb, fastjson or gson. Important: This option is only for setting the name of a data format, not to refer to an existing data format instance.

String

camel.rest.port

The port number to use for exposing the REST services, with components that run their own HTTP server, such as jetty, netty-http and undertow. Components that serve the REST services on a shared HTTP server, such as platform-http (camel.server.port) and servlet, do not use it.

int

camel.rest.producerApiDoc

Sets the location of the api document (OpenAPI) the REST producer will use to validate the REST uri and query parameters are valid according to the api document. This requires adding camel-openapi-java to the classpath, and any misconfiguration will let Camel fail on startup and report the error(s). The location of the api document is loaded from classpath by default, but you can use file: or http: to refer to resources to load from file or http url.

String

camel.rest.producerComponent

The Camel component the REST producer uses to call REST services, such as http, vertx-http, undertow or netty-http. When not set, Camel looks up a component that supports REST producers in the registry or on the classpath.

String

camel.rest.scheme

The scheme of the REST services, usually http or https. The default is http.

String

camel.rest.skipBindingOnErrorCode

Whether to skip the binding of the response body when the message has an HTTP response code (the CamelHttpResponseCode header) of 300 or higher, and send the body as it is. This option is default true.

true

boolean

camel.rest.useXForwardHeaders

Whether to use X-Forward headers to set host etc. for OpenApi. This may be needed in special cases involving reverse-proxy and networking going from HTTP to HTTPS etc. Then the proxy can send X-Forward headers (X-Forwarded-Proto) that influences the host names in the OpenAPI schema that camel-openapi-java generates from Rest DSL routes.

false

boolean

camel.rest.validationLevels

The validation levels of camel-openapi-validator for the client request and response validation: the key is a validation message key, such as validation.request.body.missing, or defaultLevel, and the value is ERROR, WARN, INFO or IGNORE.

Map

camel.rest.xmlDataFormat

The name of the XML data format the binding uses, such as jaxb (the default) or jacksonXml. Important: This option is only for setting the name of a data format, not to refer to an existing data format instance.

String

Camel AWS Vault configurations

The camel.vault.aws supports 13 options, which are listed below.

Name Description Default Type

camel.vault.aws.accessKey

The AWS access key

String

camel.vault.aws.defaultCredentialsProvider

Whether to authenticate with the default credentials provider chain of the AWS SDK (such as environment variables, Java system properties, the shared credentials and config files, or container and instance credentials), when accessKey and secretKey are not set. Requires region.

false

boolean

camel.vault.aws.overrideEndpoint

Whether to send the requests to uriEndpointOverride instead of the default endpoints of AWS: the requests to AWS Secrets Manager, and to AWS CloudTrail or Amazon SQS for the secret refresh.

false

boolean

camel.vault.aws.profileCredentialsProvider

Whether to authenticate with the credentials of the profile in profileName, from the AWS shared credentials and config files, when accessKey and secretKey are not set and defaultCredentialsProvider is not enabled.

false

boolean

camel.vault.aws.profileName

The name of the profile in the AWS shared credentials and config files, for profileCredentialsProvider.

String

camel.vault.aws.refreshEnabled

Whether to reload the CamelContext when a secret is updated in AWS Secrets Manager (a PutSecretValue or UpdateSecret event). Camel looks the events up in AWS CloudTrail every refreshPeriod, or reads them from the Amazon SQS queue when useSqsNotification is enabled.

false

boolean

camel.vault.aws.refreshPeriod

The period (millis) between the checks of AWS CloudTrail, or of the Amazon SQS queue, for updated secrets.

30000

long

camel.vault.aws.region

The AWS region

String

camel.vault.aws.secretKey

The AWS secret key

String

camel.vault.aws.secrets

The secrets whose updates trigger the reload, separated by comma: a secret matches when its name contains the value, or matches it as a wildcard or regular expression pattern. The secrets that the aws: property placeholders have read are checked as well.

String

camel.vault.aws.sqsQueueUrl

The URL of the Amazon SQS queue to read the secret update events from, when useSqsNotification is enabled.

String

camel.vault.aws.uriEndpointOverride

The URI of the endpoint to send the requests to when overrideEndpoint is enabled, such as a local emulator of AWS.

String

camel.vault.aws.useSqsNotification

Whether to read the secret update events from the Amazon SQS queue in sqsQueueUrl, instead of looking them up in AWS CloudTrail. This needs an Amazon EventBridge rule that sends the CloudTrail events of AWS Secrets Manager to the queue.

false

boolean

Camel GCP Vault configurations

The camel.vault.gcp supports 7 options, which are listed below.

Name Description Default Type

camel.vault.gcp.projectId

The GCP Project ID

String

camel.vault.gcp.refreshEnabled

Whether to reload the CamelContext when a secret is updated in Google Secret Manager (a SECRET_UPDATE or SECRET_VERSION_ADD event). Camel receives the events from the Google Cloud Pub/Sub subscription in subscriptionName.

false

boolean

camel.vault.gcp.refreshPeriod

The period (millis) between the checks that the Google Cloud Pub/Sub subscriber of the secret refresh is running; Camel starts a new subscriber when it has failed. The events trigger the reload when they arrive.

30000

long

camel.vault.gcp.secrets

The secrets whose updates trigger the reload, separated by comma: a secret matches when its name contains the value, or matches it as a wildcard or regular expression pattern. The secrets that the gcp: property placeholders have read are checked as well.

String

camel.vault.gcp.serviceAccountKey

The JSON key file of the service account to authenticate with, loaded as a resource: from the classpath by default, or from the file system with the file: prefix.

String

camel.vault.gcp.subscriptionName

The name of the Google Cloud Pub/Sub subscription, in the project in projectId, that receives the Secret Manager events, for the secret refresh.

String

camel.vault.gcp.useDefaultInstance

Whether to authenticate with the Application Default Credentials of the Google Cloud client libraries, when serviceAccountKey is not set. Requires projectId.

false

boolean

Camel Azure Key Vault configurations

The camel.vault.azure supports 12 options, which are listed below.

Name Description Default Type

camel.vault.azure.azureIdentityEnabled

Whether to authenticate with DefaultAzureCredential of the Azure Identity library (such as environment variables, workload identity, managed identity or the Azure CLI login), instead of clientId, clientSecret and tenantId.

false

boolean

camel.vault.azure.blobAccessKey

The access key of the Azure Storage account in blobAccountName, which the Azure Event Hubs event processor of the secret refresh uses as checkpoint store.

String

camel.vault.azure.blobAccountName

The name of the Azure Storage account that the Azure Event Hubs event processor of the secret refresh uses as checkpoint store.

String

camel.vault.azure.blobContainerName

The name of the blob container, in the Azure Storage account in blobAccountName, that the Azure Event Hubs event processor of the secret refresh uses as checkpoint store.

String

camel.vault.azure.clientId

The client ID of the Microsoft Entra ID application that accesses Azure Key Vault, together with clientSecret and tenantId. Not used when azureIdentityEnabled is enabled.

String

camel.vault.azure.clientSecret

The client secret of the Microsoft Entra ID application in clientId. Not used when azureIdentityEnabled is enabled.

String

camel.vault.azure.eventhubConnectionString

The connection string of the Azure Event Hubs event hub that receives the Azure Key Vault events of the vault (through Azure Event Grid), for the secret refresh. It must include the name of the event hub (EntityPath).

String

camel.vault.azure.refreshEnabled

Whether to reload the CamelContext when a new version of a secret is created in Azure Key Vault (a Microsoft.KeyVault.SecretNewVersionCreated event). Camel receives the events from the Azure Event Hubs event hub in eventhubConnectionString.

false

boolean

camel.vault.azure.refreshPeriod

The period (millis) of the secret refresh task. The secret updates arrive as Azure Event Hubs events, which trigger the reload when they arrive, so the period does not delay a reload.

30000

long

camel.vault.azure.secrets

The secrets whose updates trigger the reload, separated by comma: a secret matches when its name contains the value, or matches it as a wildcard or regular expression pattern. The secrets that the azure: property placeholders have read are checked as well.

String

camel.vault.azure.tenantId

The ID of the Microsoft Entra ID tenant of the application in clientId. Not used when azureIdentityEnabled is enabled.

String

camel.vault.azure.vaultName

The name of the vault in Azure Key Vault: Camel reads the secrets from https://{vaultName}.vault.azure.net.

String

Camel Kubernetes Vault configurations

The camel.vault.kubernetes supports 4 options, which are listed below.

Name Description Default Type

camel.vault.kubernetes.refreshEnabled

Whether to reload the CamelContext when a Kubernetes secret listed in secrets is updated. Camel watches the secrets of the namespace of its Kubernetes client.

false

boolean

camel.vault.kubernetes.secrets

The Kubernetes secrets to watch, separated by comma: a secret matches when its name contains the value, or matches it as a wildcard or regular expression pattern. Only these secrets trigger the reload.

String

camel.vault.kubernetescm.configmaps

The Kubernetes config maps to watch, separated by comma: a config map matches when its name contains the value, or matches it as a wildcard or regular expression pattern. Only these config maps trigger the reload.

String

camel.vault.kubernetescm.refreshEnabled

Whether to reload the CamelContext when a Kubernetes config map listed in configmaps is updated. Camel watches the config maps of the namespace of its Kubernetes client.

false

boolean

Camel Kubernetes Configmaps Vault configurations

The camel.vault.kubernetescm supports 2 options, which are listed below.

Name Description Default Type

camel.vault.kubernetescm.configmaps

The Kubernetes config maps to watch, separated by comma: a config map matches when its name contains the value, or matches it as a wildcard or regular expression pattern. Only these config maps trigger the reload.

String

camel.vault.kubernetescm.refreshEnabled

Whether to reload the CamelContext when a Kubernetes config map listed in configmaps is updated. Camel watches the config maps of the namespace of its Kubernetes client.

false

boolean

Camel Hashicorp Vault configurations

The camel.vault.hashicorp supports 25 options, which are listed below.

Name Description Default Type

camel.vault.hashicorp.authentication

How to log in to hashicorp vault: token (a fixed token), approle (a role ID and a secret ID), kubernetes (the service account token of the pod), jwt (a JWT, such as a workload identity token), cert (the TLS client certificate of the keyStore), aws-iam (the AWS credentials of the application), azure-msi (the Azure managed identity) or gcp-gce (the service account of the Google Compute Engine instance). Camel renews the token before it expires, and logs in again when the token can no longer be renewed.

token

String

camel.vault.hashicorp.authMountPath

The path the login method is mounted at in hashicorp vault (without auth/), when it is not the default path of the login method: approle, kubernetes, jwt, cert, aws (for aws-iam), azure (for azure-msi) or gcp (for gcp-gce)

String

camel.vault.hashicorp.awsIamServerId

The value of the X-Vault-AWS-IAM-Server-ID header of the aws-iam login, when the AWS login of hashicorp vault requires one (iam_server_id_header_value)

String

camel.vault.hashicorp.awsRegion

The AWS region the aws-iam login signs its request for, which must be the region of awsStsEndpoint. When not set: us-east-1 with the global endpoint, else the region of the AWS SDK default region chain (such as the AWS_REGION environment variable).

String

camel.vault.hashicorp.awsStsEndpoint

The AWS STS endpoint of the aws-iam login, which the AWS login of hashicorp vault must accept (its sts_endpoint). When not set, the global endpoint https://sts.amazonaws.com/.

String

camel.vault.hashicorp.azureClientId

The client ID of a user-assigned managed identity, for the azure-msi login. When not set, the system-assigned managed identity.

String

camel.vault.hashicorp.azureResource

The resource (audience) of the managed identity token of the azure-msi login, which must be the resource of the Azure login of hashicorp vault

https://management.azure.com/

String

camel.vault.hashicorp.cloud

Whether hashicorp vault runs on HashiCorp Cloud Platform: Camel then logs in and reads the secrets in namespace.

false

boolean

camel.vault.hashicorp.host

Host to access hashicorp vault

String

camel.vault.hashicorp.jwt

The JWT to log in with, for the jwt and kubernetes logins. For a JWT that is replaced over time, such as a projected service account token, use jwtFile instead.

String

camel.vault.hashicorp.jwtFile

The file to read the JWT from at every login, for the jwt and kubernetes logins. The kubernetes login reads /var/run/secrets/kubernetes.io/serviceaccount/token when neither jwt nor jwtFile is set.

String

camel.vault.hashicorp.keyStore

The file with the TLS client certificate and its private key, which Camel presents to hashicorp vault: for the cert login, or for a Vault that requires client certificates. A PKCS12 or JKS key store, or PEM with the certificate and its unencrypted private key, in PKCS#8 or, for an RSA key, in PKCS#1.

String

camel.vault.hashicorp.keyStorePassword

The password of the key store and of its private key, when it is a PKCS12 or JKS key store

String

camel.vault.hashicorp.namespace

The namespace of hashicorp vault on HashiCorp Cloud Platform, used when cloud is enabled: Camel logs in to the namespace, and reads the secrets with the namespace as prefix of their path.

String

camel.vault.hashicorp.port

Port to access hashicorp vault

String

camel.vault.hashicorp.refreshEnabled

Whether to reload the CamelContext when a new version of a secret is written in hashicorp vault. Camel reads the current version of each secret from its metadata (KV secrets engine version 2) every refreshPeriod.

false

boolean

camel.vault.hashicorp.refreshPeriod

The period (millis) between checking Hashicorp Vault for updated secrets.

60000

long

camel.vault.hashicorp.role

The hashicorp vault role to log in as, for the kubernetes, jwt, cert, aws-iam, azure-msi and gcp-gce logins. The jwt login can leave it out when the login method has a default role, the aws-iam login to log in as the role named as the IAM principal, and the cert login to let Vault pick the certificate role that trusts the certificate.

String

camel.vault.hashicorp.roleId

The role ID of the AppRole, for the approle login

String

camel.vault.hashicorp.scheme

The scheme to access hashicorp vault: http or https.

String

camel.vault.hashicorp.secretId

The secret ID of the AppRole, for the approle login

String

camel.vault.hashicorp.secrets

The secrets to check for a new version, separated by comma: the name of a secret, or engine:name for a secret of another engine than secret. The secrets that the hashicorp: property placeholders have read are checked as well.

String

camel.vault.hashicorp.token

Token to access hashicorp vault, for the token login

String

camel.vault.hashicorp.trustStore

The file with the certificates to trust for the TLS connection to hashicorp vault, such as the CA certificate of a private CA: a PKCS12 or JKS trust store, or PEM certificates. When not set, the JVM trusts the certificate as for any other TLS connection.

String

camel.vault.hashicorp.trustStorePassword

The password of the trust store, when it is a PKCS12 or JKS trust store

String

Camel IBM Secrets Manager Vault configurations

The camel.vault.ibm supports 10 options, which are listed below.

Name Description Default Type

camel.vault.ibm.eventStreamBootstrapServers

The bootstrap servers of IBM Event Streams, separated by comma.

String

camel.vault.ibm.eventStreamConsumerPollTimeout

The longest time (millis) that one poll of the IBM Event Streams consumer waits for events.

3000

long

camel.vault.ibm.eventStreamGroupId

The consumer group ID of the IBM Event Streams consumer of the secret refresh.

String

camel.vault.ibm.eventStreamPassword

The password for the SASL PLAIN login to IBM Event Streams, such as the API key of its service credentials.

String

camel.vault.ibm.eventStreamTopic

The IBM Event Streams topic to consume the IBM Secrets Manager events from, for the secret refresh.

String

camel.vault.ibm.eventStreamUsername

The user name for the SASL PLAIN login to IBM Event Streams. When not set: token.

String

camel.vault.ibm.refreshEnabled

Whether to reload the CamelContext when a secret is rotated in IBM Secrets Manager (a secret_rotated event). Camel receives the events from the IBM Event Streams topic in eventStreamTopic.

false

boolean

camel.vault.ibm.secrets

The secrets whose updates trigger the reload, separated by comma: a secret matches when its name contains the value, or matches it as a wildcard or regular expression pattern. The secrets that the ibm: property placeholders have read are checked as well.

String

camel.vault.ibm.serviceUrl

Service URL to access IBM Secrets Manager vault

String

camel.vault.ibm.token

The IBM Cloud API key that Camel authenticates to IBM Secrets Manager with, through IBM Cloud IAM.

String

Camel CyberArk Conjur Vault configurations

The camel.vault.cyberark supports 9 options, which are listed below.

Name Description Default Type

camel.vault.cyberark.account

The CyberArk Conjur account name

String

camel.vault.cyberark.apiKey

The API key of the login in username, used when authToken is not set. Camel authenticates again when its access token expires.

String

camel.vault.cyberark.authToken

A Conjur access token to use as it is, instead of authenticating with apiKey or password. Camel cannot renew it when it expires.

String

camel.vault.cyberark.certificatePath

Path of a file with the SSL certificate to trust when connecting to CyberArk Conjur, in PEM or DER format: a path of the file system, or a resource with the file: or classpath: prefix. Other prefixes, such as http:, are not supported.

String

camel.vault.cyberark.password

The password of the login in username, used when neither authToken nor apiKey is set.

String

camel.vault.cyberark.secrets

Not used: Camel has no secret refresh for CyberArk Conjur, so it checks no secrets for updates.

String

camel.vault.cyberark.url

The CyberArk Conjur instance URL

String

camel.vault.cyberark.username

The Conjur login (user or host ID) to authenticate as, with apiKey or password.

String

camel.vault.cyberark.verifySsl

Whether to verify SSL certificates

true

boolean

Camel OpenTelemetry configurations

The camel.opentelemetry supports 11 options, which are listed below.

Name Description Default Type

camel.opentelemetry.enabled

Whether to enable tracing with OpenTelemetry, using the deprecated camel-opentelemetry. Setting any other camel.opentelemetry option also enables it, unless this option is false.

false

boolean

camel.opentelemetry.encoding

Whether to encode the dashes in the names of the trace context headers when they are sent with messaging components such as JMS, whose property names cannot contain dashes.

false

boolean

camel.opentelemetry.excludePatterns

Endpoint URIs to leave out of tracing, separated by commas; with traceProcessors also the ids of the processors. A pattern is an exact value, a wildcard such as direct:* or a regular expression.

String

camel.opentelemetry.instrumentationName

The name of the instrumentation scope of the OpenTelemetry tracer, used when no io.opentelemetry.api.trace.Tracer is in the registry.

camel

String

camel.opentelemetry.traceProcessors

Whether to create a span for each processor (step) of the routes, in addition to the spans of the endpoints. Use excludePatterns to leave processors out by id.

false

boolean

camel.opentelemetry2.enabled

Whether to enable tracing with OpenTelemetry, using camel-opentelemetry2. Setting any other camel.opentelemetry2 option also enables it, unless this option is false. Not used when camel.opentelemetry is enabled, as only one tracer is installed.

false

boolean

camel.opentelemetry2.encoding

Not used: camel-opentelemetry2 always encodes the dashes in the names of the trace context headers of JMS messages, and has no such option to set.

false

boolean

camel.opentelemetry2.excludePatterns

Endpoint URIs and processors to leave out of tracing, separated by commas. A processor is matched by its id and type, such as log1-log. A pattern is an exact value, a wildcard such as direct:* or a regular expression.

String

camel.opentelemetry2.includePatterns

Endpoint URIs and processors to trace, separated by commas; when set, only the matching ones are traced, and excludePatterns still applies. A processor is matched by its id and type, such as log1-log. All are traced when not set.

String

camel.opentelemetry2.instrumentationName

Not used: camel-opentelemetry2 always names the instrumentation scope camel, and has no such option to set.

camel

String

camel.opentelemetry2.traceProcessors

Whether to also create spans for the custom processors (the process steps) of the routes. The other processors get spans unless disableCoreProcessors is true.

false

boolean

Camel OpenTelemetry 2 configurations

The camel.opentelemetry2 supports 6 options, which are listed below.

Name Description Default Type

camel.opentelemetry2.enabled

Whether to enable tracing with OpenTelemetry, using camel-opentelemetry2. Setting any other camel.opentelemetry2 option also enables it, unless this option is false. Not used when camel.opentelemetry is enabled, as only one tracer is installed.

false

boolean

camel.opentelemetry2.encoding

Not used: camel-opentelemetry2 always encodes the dashes in the names of the trace context headers of JMS messages, and has no such option to set.

false

boolean

camel.opentelemetry2.excludePatterns

Endpoint URIs and processors to leave out of tracing, separated by commas. A processor is matched by its id and type, such as log1-log. A pattern is an exact value, a wildcard such as direct:* or a regular expression.

String

camel.opentelemetry2.includePatterns

Endpoint URIs and processors to trace, separated by commas; when set, only the matching ones are traced, and excludePatterns still applies. A processor is matched by its id and type, such as log1-log. All are traced when not set.

String

camel.opentelemetry2.instrumentationName

Not used: camel-opentelemetry2 always names the instrumentation scope camel, and has no such option to set.

camel

String

camel.opentelemetry2.traceProcessors

Whether to also create spans for the custom processors (the process steps) of the routes. The other processors get spans unless disableCoreProcessors is true.

false

boolean

Camel Telemetry Dev configurations

The camel.telemetryDev supports 5 options, which are listed below.

Name Description Default Type

camel.telemetryDev.enabled

Whether to enable the camel-telemetry-dev tracer, which logs each trace when it completes (with the logger LOG_TRACE); a tool for development. Setting any other camel.telemetryDev option also enables it, unless this option is false. Not used when camel.opentelemetry or camel.opentelemetry2 is enabled.

false

boolean

camel.telemetryDev.excludePatterns

Endpoint URIs and processors to leave out of tracing, separated by commas. A processor is matched by its id and type, such as log1-log. A pattern is an exact value, a wildcard such as direct:* or a regular expression.

String

camel.telemetryDev.includePatterns

Endpoint URIs and processors to trace, separated by commas; when set, only the matching ones are traced, and excludePatterns still applies. A processor is matched by its id and type, such as log1-log. All are traced when not set.

String

camel.telemetryDev.traceFormat

How each completed trace is logged: default (the toString of the trace), tree (the spans as an indented tree) or json.

String

camel.telemetryDev.traceProcessors

Whether to also create spans for the custom processors (the process steps) of the routes. The other processors get spans unless disableCoreProcessors is true.

false

boolean

Camel MDC configurations

The camel.mdc supports 3 options, which are listed below.

Name Description Default Type

camel.mdc.customExchangeHeaders

The message headers to also put in the MDC, with the header name as key, separated by commas. A name may contain * as a wildcard, and * alone adds all headers.

String

camel.mdc.customExchangeProperties

The exchange properties to also put in the MDC, with the property name as key, separated by commas. A name may contain * as a wildcard, and * alone adds all properties.

String

camel.mdc.enabled

Whether to enable the MDC service of camel-mdc, which puts the exchange id, message id, route id, CamelContext name, thread name, correlation id and breadcrumb id in the logging MDC (Mapped Diagnostic Context) while an exchange is routed. Setting any other camel.mdc option also enables it, unless this option is false.

false

boolean

Camel Micrometer Metrics configurations

The camel.metrics supports 18 options, which are listed below.

Name Description Default Type

camel.metrics.baseEndpointURIExchangeEventNotifier

Whether the endpointName tag of the exchange event metrics holds the endpoint URI without its query parameters (true) or the full URI (false). The full URI can create many tags, for example with a dynamic to (toD), which computes a URI for each message.

true

boolean

camel.metrics.binders

Micrometer binders to add, separated by commas, named after the binder class in dash case without the Metrics suffix: class-loader, commons-object-pool2, file-descriptor, jvm-compilation, jvm-gc, jvm-heap-pressure, jvm-info, jvm-memory, jvm-thread, jvm-thread-deadlock, log4j2, logback, processor and uptime. A name that matches no binder is ignored.

String

camel.metrics.clearOnReload

Whether to remove the metrics of the routes (the Camel metrics with a routeId tag, except the camel.exchanges ones) when routes are reloaded, such as when the Camel CLI reloads changed routes.

true

boolean

camel.metrics.enabled

Whether to enable Micrometer metrics, with camel-micrometer-prometheus, which must be on the classpath. Setting any other camel.metrics option also enables it, unless this option is false.

false

boolean

camel.metrics.enableExchangeEventNotifier

Whether to capture metrics of the exchange events, with the MicrometerExchangeEventNotifier: the time taken to process an exchange and to send it to each endpoint, the inflight exchanges of each route and the timestamp of the last exchange.

true

boolean

camel.metrics.enableInstrumentedThreadPoolFactory

Whether to capture metrics of the thread pools that Camel creates, by wrapping its thread pool factory with an InstrumentedThreadPoolFactory.

false

boolean

camel.metrics.enableMessageHistory

Whether to capture the processing time of each node of the routes, with the MicrometerMessageHistoryFactory, which also turns on message history. With many routes and nodes this creates many metrics, so it is off by default.

false

boolean

camel.metrics.enableRouteEventNotifier

Whether to capture the number of routes added, running and reloaded, with the MicrometerRouteEventNotifier.

true

boolean

camel.metrics.enableRoutePolicy

Whether to capture the processing times and the exchange counts of the routes and the CamelContext, with the MicrometerRoutePolicyFactory. routePolicyLevel selects which of them.

true

boolean

camel.metrics.logMetricsOnShutdown

Whether to log the metrics when the application shuts down. Only when enableExchangeEventNotifier is true.

false

boolean

camel.metrics.logMetricsOnShutdownFilters

The metrics to log on shutdown, separated by commas; all metrics when not set. A filter with a wildcard, such as camel.exchanges.*, matches every metric whose name contains the filter without the wildcard; other filters must equal the name.

String

camel.metrics.logMetricsOnShutdownFormat

Format used to log metrics when application is shutting down. Either json (default) or prometheus format.

json

String

camel.metrics.namingStrategy

The naming style of the metrics: default uses the Micrometer naming convention (such as camel.exchanges.total), legacy uses the older names in camel case (such as CamelExchangesTotal).

default

String

camel.metrics.path

The path of the HTTP endpoint for Prometheus scraping, on the management HTTP server (camel.management.port), served when camel.management.metricsEnabled is true.

/observe/metrics

String

camel.metrics.recordLastExchangeTimestamp

Whether to record the last exchange processed timestamp as a Gauge metric (camel.exchanges.last.timestamp). Set to false to disable this metric entirely.

true

boolean

camel.metrics.routePolicyLevel

Which metrics the route policy captures: all (the CamelContext and each route), context (only the CamelContext) or route (only each route).

all

String

camel.metrics.skipCamelInfo

Skip the evaluation of app.info metric which contains runtime provider information (default, false).

false

boolean

camel.metrics.textFormatVersion

The Prometheus text format of the scrape response: 0.0.4 (text/plain; version=0.0.4) or 1.0.0 (OpenMetrics, application/openmetrics-text; version=1.0.0). A client that asks for application/openmetrics-text in its Accept header gets 1.0.0.

0.0.4

String

Fault Tolerance EIP Circuit Breaker configurations

The camel.faulttolerance supports 11 options, which are listed below.

Name Description Default Type

camel.faulttolerance.bulkheadEnabled

Whether to limit the number of concurrent calls with a bulkhead (see bulkheadMaxConcurrentCalls). The default is false.

false

Boolean

camel.faulttolerance.bulkheadMaxConcurrentCalls

Configures the max amount of concurrent calls the bulkhead will support. Default value is 10.

10

Integer

camel.faulttolerance.bulkheadWaitingTaskQueue

Configures the task queue size for holding waiting tasks to be processed by the bulkhead. Default value is 10.

10

Integer

camel.faulttolerance.delay

How long, in milliseconds, the circuit breaker stays open before it turns half-open and lets trial calls through. The default is 5000 (5 seconds).

5000

Long

camel.faulttolerance.failureRatio

The failure ratio, in percent from 1 to 100, of the calls in the rolling window at which the circuit breaker opens and starts rejecting calls. The default is 50.

50

Integer

camel.faulttolerance.requestVolumeThreshold

The size of the rolling window of calls, while the circuit breaker is closed, from which the failure ratio is computed. The circuit breaker does not open before the window is full. The default is 20.

20

Integer

camel.faulttolerance.successThreshold

The number of successful trial calls in the half-open state that close the circuit breaker again; a failed trial call opens it again. The default is 1.

1

Integer

camel.faulttolerance.threadOffloadExecutorService

The id of a thread pool (an ExecutorService in the registry, or a thread pool profile) that runs the guarded calls. By default Camel creates a cached thread pool.

String

camel.faulttolerance.timeoutDuration

The timeout of a call, in milliseconds, when timeoutEnabled is true. The default is 1000 (1 second).

1000

Long

camel.faulttolerance.timeoutEnabled

Whether a call that takes longer than timeoutDuration fails with a timeout. The default is false.

false

Boolean

camel.faulttolerance.typedGuard

Refers to an existing io.smallrye.faulttolerance.api.TypedGuard instance to lookup and use from the registry. When using this, then any other TypedGuard circuit breaker options are not in use.

String

Resilience4j EIP Circuit Breaker configurations

The camel.resilience4j supports 25 options, which are listed below.

Name Description Default Type

camel.resilience4j.asynchronous

Whether to use asynchronous (non-blocking) processing using Resilience4j’s CompletionStage-based decorators. When enabled, the caller thread is released immediately and processing completes asynchronously.

false

Boolean

camel.resilience4j.automaticTransitionFromOpenToHalfOpenEnabled

Enables automatic transition from OPEN to HALF_OPEN state once the waitDurationInOpenState has passed.

false

Boolean

camel.resilience4j.bulkheadEnabled

Whether to limit the number of concurrent calls with a bulkhead (see bulkheadMaxConcurrentCalls). The default is false.

false

Boolean

camel.resilience4j.bulkheadFairCallHandlingEnabled

Configures whether the bulkhead uses a fair calling strategy. When enabled (default), a fair strategy guarantees the order of incoming requests (FIFO). When disabled, no ordering is guaranteed and may improve throughput.

true

Boolean

camel.resilience4j.bulkheadMaxConcurrentCalls

The maximum number of concurrent calls that the bulkhead lets through, when bulkheadEnabled is true. When not set, Resilience4j uses 25.

Integer

camel.resilience4j.bulkheadMaxWaitDuration

Configures a maximum amount of time which the calling thread will wait to enter the bulkhead. Accepts Camel duration expressions (e.g. 500ms, 1s) or millisecond values. Default is 0 (no waiting).

String

camel.resilience4j.circuitBreaker

Refers to an existing io.github.resilience4j.circuitbreaker.CircuitBreaker instance to lookup and use from the registry. When using this, then any other circuit breaker options are not in use.

String

camel.resilience4j.config

Refers to an existing io.github.resilience4j.circuitbreaker.CircuitBreakerConfig instance in the registry. Not used at present: camel-resilience4j builds the configuration from the other options.

String

camel.resilience4j.failureRateThreshold

Configures the failure rate threshold in percentage. If the failure rate is equal or greater than the threshold the CircuitBreaker transitions to open and starts short-circuiting calls. The threshold must be greater than 0 and not greater than 100. Default value is 50 percentage.

50

Float

camel.resilience4j.maxWaitDurationInHalfOpenState

Configures the maximum wait duration which controls how long the CircuitBreaker should stay in Half Open state, before it switches to open. Value 0 means circuit breaker will wait in half open state until all permitted calls have been completed. Accepts Camel duration expressions (e.g. 10s, 1m) or millisecond values.

0

String

camel.resilience4j.micrometerEnabled

Whether to enable collecting statistics using Micrometer. This requires adding camel-resilience4j-micrometer JAR to the classpath.

false

Boolean

camel.resilience4j.minimumNumberOfCalls

The minimum number of calls that must be recorded (per sliding window period) before the CircuitBreaker can calculate the failure rate. For example, if minimumNumberOfCalls is 10, then at least 10 calls must be recorded before the failure rate can be calculated, and with 9 recorded calls the CircuitBreaker does not open even if all 9 failed. The default is 100.

100

Integer

camel.resilience4j.permittedNumberOfCallsInHalfOpenState

Configures the number of permitted calls when the CircuitBreaker is half open. The size must be greater than 0. Default size is 10.

10

Integer

camel.resilience4j.slidingWindowSize

The size of the sliding window that records the outcome of the calls while the CircuitBreaker is closed: the last slidingWindowSize calls (COUNT_BASED) or the calls of the last slidingWindowSize seconds (TIME_BASED), see slidingWindowType. It must be greater than 0, and with COUNT_BASED not smaller than minimumNumberOfCalls. The default is 100.

100

Integer

camel.resilience4j.slidingWindowSynchronizationStrategy

Configures the synchronization strategy for the sliding window. LOCK_FREE uses a CAS-based lock-free algorithm for better performance under high concurrency. SYNCHRONIZED uses blocking locks with lower memory allocation.

SYNCHRONIZED

String

camel.resilience4j.slidingWindowType

Configures the type of the sliding window which is used to record the outcome of calls when the CircuitBreaker is closed. Sliding window can either be count-based or time-based. If slidingWindowType is COUNT_BASED, the last slidingWindowSize calls are recorded and aggregated. If slidingWindowType is TIME_BASED, the calls of the last slidingWindowSize seconds are recorded and aggregated. Default slidingWindowType is COUNT_BASED.

COUNT_BASED

String

camel.resilience4j.slowCallDurationThreshold

Configures the duration threshold above which calls are considered as slow and increase the slow calls percentage. Accepts Camel duration expressions (e.g. 60s, 1m) or millisecond values. Default value is 60 seconds.

60s

String

camel.resilience4j.slowCallRateThreshold

The threshold, in percent, of slow calls: a call is slow when it takes longer than slowCallDurationThreshold. When the percentage of slow calls is equal to or greater than the threshold, the CircuitBreaker opens and starts short-circuiting calls. It must be greater than 0 and not greater than 100. The default is 100, which means that all recorded calls must be slower than slowCallDurationThreshold.

100

Float

camel.resilience4j.throwExceptionWhenHalfOpenOrOpenState

Whether a call that the circuit breaker rejects, as it is open or half-open, fails with io.github.resilience4j.circuitbreaker.CallNotPermittedException, when there is no fallback. When false, the exchange continues without an exception, and the exchange properties tell that the call was rejected.

false

Boolean

camel.resilience4j.timeoutCancelRunningFuture

Whether to cancel the running call (Future.cancel) when it times out. The default is true.

true

Boolean

camel.resilience4j.timeoutDuration

Configures the thread execution timeout. Accepts Camel duration expressions (e.g. 1s, 500ms) or millisecond values. Default value is 1000 millis (1 second).

1000

String

camel.resilience4j.timeoutEnabled

Whether a call that takes longer than timeoutDuration fails with a timeout. The calls then run on a thread pool (see timeoutExecutorService). The default is false.

false

Boolean

camel.resilience4j.timeoutExecutorService

The id of a thread pool (an ExecutorService in the registry, or a thread pool profile) that runs the calls when timeoutEnabled is true; with asynchronous it must be a ScheduledExecutorService. By default Camel creates a thread pool from the default thread pool profile, or a scheduled thread pool with asynchronous.

String

camel.resilience4j.waitDurationInOpenState

Configures the wait duration which specifies how long the CircuitBreaker should stay open, before it switches to half open. Accepts Camel duration expressions (e.g. 60s, 1m) or millisecond values. Default value is 60 seconds.

60s

String

camel.resilience4j.writableStackTraceEnabled

Whether the exceptions of Resilience4j, such as CallNotPermittedException, have a stack trace. When false, Exception.getStackTrace returns a zero length array, which reduces log spam when the circuit breaker is open, as the cause is already known. When not set, Resilience4j uses true.

false

Boolean

Camel Saga EIP (Long Running Actions) configurations

The camel.lra supports 7 options, which are listed below.

Name Description Default Type

camel.lra.allowedCoordinatorUrls

Comma-separated URLs, including the context path, of further LRA coordinators whose LRAs may be joined, completed or compensated. By default, only an LRA hosted by the configured coordinator is accepted. Use it when participants reach the same coordinator under different URLs, for example with different host names.

String

camel.lra.callbackSecret

Secret used to sign the participant callback URLs that are enlisted with the LRA coordinator, and to verify them when the coordinator calls back. When set, a compensation or completion callback with a missing or invalid signature is rejected with HTTP 403. All the instances of a participant must use the same secret.

String

camel.lra.coordinatorContextPath

The context path of the LRA coordinator API, added to coordinatorUrl.

/lra-coordinator

String

camel.lra.coordinatorUrl

The base URL (scheme, host and port) of the LRA coordinator, such as http://localhost:8080, to which coordinatorContextPath is added. Required.

String

camel.lra.enabled

Whether to enable the LRA saga service of camel-lra, with which the Saga EIP coordinates long running actions through an LRA coordinator. Setting any other camel.lra option also enables it, unless this option is false.

false

boolean

camel.lra.localParticipantContextPath

The context path under which this application serves the participant callbacks for the LRA coordinator (with the Rest DSL), added to localParticipantUrl.

/lra-participant

String

camel.lra.localParticipantUrl

The base URL (scheme, host and port) at which the LRA coordinator calls back this application to complete or compensate, to which localParticipantContextPath is added. Required.

String

Camel Error Registry configurations

The camel.errorRegistry supports 10 options, which are listed below.

Name Description Default Type

camel.errorRegistry.bodyIncludeFiles

Whether to include the message body of file based messages. The overhead is that the file content has to be read from the file.

true

boolean

camel.errorRegistry.bodyIncludeStreams

Whether to include the message body of stream based messages. If enabled then beware the stream may not be re-readable later. See more about Stream Caching.

false

boolean

camel.errorRegistry.bodyMaxChars

The maximum number of characters of the message body to keep in the captured error data; a longer body is clipped. Use 0 for no limit, and a negative value to not capture the body.

32768

int

camel.errorRegistry.enabled

Whether the error registry is enabled to capture errors during message routing.

false

boolean

camel.errorRegistry.includeExchangeProperties

Whether to include the exchange properties in the captured error data.

true

boolean

camel.errorRegistry.includeExchangeVariables

Whether to include the exchange variables in the captured error data.

true

boolean

camel.errorRegistry.includeRouteStopping

Whether to also capture an exchange cut off by a route stop, a route reload or a CamelContext stop (RouteStoppingException). Nothing in the route failed, but a consumer that does not roll back may lose the message, so enable it to see how often stops cut off work.

false

boolean

camel.errorRegistry.maximumEntries

The maximum number of error entries to keep in the registry. When the limit is exceeded, the oldest entries are evicted.

100

int

camel.errorRegistry.maximumEntriesPerKind

The maximum number of error entries of the same kind (same route, node and exception type) to keep, so a storm of one failure does not evict all the other errors. The counter of that kind keeps rising even when its older entries are evicted.

3

int

camel.errorRegistry.timeToLiveSeconds

The time-to-live in seconds for error entries. Entries older than this are evicted. The default value is 0 (disabled).

0

int

Camel GenAI Observability configurations

The camel.aiObservability supports 4 options, which are listed below.

Name Description Default Type

camel.aiObservability.contentMaxLength

The maximum length of every text (message, tool argument or result) recorded at level full. Longer texts are cut. A value that is not positive means the default.

8192

int

camel.aiObservability.deferToFramework

When the AI framework behind a component already traces its model calls and tool calls (Spring AI with an ObservationRegistry, quarkus-langchain4j, a LangChain4j model with an observation listener), Camel does not record its own span and metrics for them, so that they are counted once.

true

boolean

camel.aiObservability.enabled

Enables GenAI observability for Camel AI producers (OpenTelemetry spans and Micrometer metrics when backends are present).

true

boolean

camel.aiObservability.level

How much GenAI telemetry is recorded. basic records one span per LLM call with model, token usage and finish reason. detailed adds the structure of agent runs (an agent span with one span per LLM call and per tool call), request parameters, cached tokens and the conversation id. full adds prompts, completions and tool arguments and results, which may hold personal or confidential data. Content and ids never become metric tags.

basic

String

Camel Chaos configurations

The camel.chaos supports 7 options, which are listed below.

Name Description Default Type

camel.chaos.enabled

Whether to install the hooks of camel-chaos, which do nothing until a rule is added. The default is false, and true with profile dev. With profile prod chaos stays off, also when this is true.

false

Boolean

camel.chaos.maxDuration

The longest time a rule runs: a rule without an until duration ends after it, and a longer until duration or delay is rejected when the rule is added.

10m

String

camel.chaos.reportFile

A file to write the chaos report to as JSON when the CamelContext stops, such as target/chaos-report.json.

String

camel.chaos.reportOnShutdown

Whether to log the chaos report when the CamelContext stops, if any rule was added.

true

boolean

camel.chaos.rules

Rules to add at startup, in the one-line text form of a rule, separated by semicolons.

String

camel.chaos.scenario

A scenario to load at startup: a file with one rule per line, # comments and an optional seed= line (such as test/chaos/outage.chaos), or classpath:name. Its rules are added before the rules option, and its seed is used unless the seed option is set.

String

camel.chaos.seed

The seed of the random draws of the rules. Without it a seed is picked at startup, and shown in the report.

Long

Camel Sanitizer configurations

The camel.sanitizer supports 7 options, which are listed below.

Name Description Default Type

camel.sanitizer.checks

The checks to run, separated by commas: callback (rule R1, the callback of each call of the processor of a step is called exactly once, and process does not throw), commit (rule R2, each commit of a consumer runs exactly once, for the unit of work that owns it) and threads (rule R3, process returns the value its callback is called with, and, at the watch windows of overlapSampling, an exchange is not used by two threads at the same time). The default is callback,threads, as rule R2 costs more per message; for a CamelContext built on a thread the JUnit extension marked (a test with the CamelSanitizer annotation, or the CI switch) it is callback,commit,threads.

callback,threads

String

camel.sanitizer.enabled

Whether to install the exchange sanitizer. The default is false, and true with profile dev or in a test with the CamelSanitizer annotation. With profile prod the sanitizer stays off, also when this is true.

false

Boolean

camel.sanitizer.overlapSampling

Rule R3 (in checks threads): a short watch window is opened at every Nth point where the routing engine uses an exchange (a step is called, the callback of a step continues the exchange, an on completion runs), and its thread pauses in it; another thread that uses the same exchange at such a point during the window is reported with it. The points are counted, not drawn at random: when one thread routes the exchanges, a rerun samples the same points. When several threads do, they share the counter and it falls on other points from run to run. 0 is off, the default, as a paused thread changes the timing of the application; for a CamelContext built on a thread the JUnit extension marked (a test with the CamelSanitizer annotation, or the CI switch) it is 100, and a test class turns it off for itself with CamelSanitizer(overlapSampling = 0).

0

Integer

camel.sanitizer.overlapWindow

How long a thread pauses in a watch window of rule R3 (see overlapSampling), such as 1ms or 5 (milliseconds); more than 0. The pause uses the system clock, not the TimeSource of the context, so a virtual clock does not stretch it.

1ms

String

camel.sanitizer.pendingTimeout

How long an exchange waits, with nothing happening in it, before the call of a step whose callback has not come is reported as still pending (a warning of rule R1, which never fails a test), such as 60s or 500 (milliseconds). Only the innermost pending call of an exchange is reported. 0 turns the warning off, as does a value of checks without callback. The parts of a split, multicast or recipient list with parallel processing share one lock of the table of pending calls, which orders their threads: when hunting races between such parts, use 0, and leave commit out of checks (checks=callback,threads), as rule R2 takes one lock of the context at each unit of work given, each on completion added, handed over or run, and each exchange done.

60s

String

camel.sanitizer.reportOnShutdown

Whether to log the report of the sanitizer when the CamelContext stops, if it reported a violation or a still pending warning, and the calls of steps still pending then.

true

boolean

camel.sanitizer.stackDepth

How many frames of each stack a report keeps; 0 keeps only the name of the thread, which costs least.

32

int

Camel File Cluster Service configurations

The camel.cluster.file supports 10 options, which are listed below.

Name Description Default Type

camel.cluster.file.acquireLockDelay

The delay before the first attempt to acquire the cluster lock, used when the lock file and the data file of the namespace already exist in the root directory. Otherwise, the first attempt waits until the next multiple of acquireLockInterval of the wall-clock time. Must be greater than 0.

1

long

camel.cluster.file.acquireLockDelayUnit

The time unit of acquireLockDelay.

SECONDS

TimeUnit

camel.cluster.file.acquireLockInterval

The interval of the leadership checks: a follower reads the heartbeat of the leader (and tries to acquire the cluster lock when the leader is stale), and the leader updates its heartbeat in the data file. The checks run at multiples of this interval of the wall-clock time. All the cluster members must use the same value, as the followers use the interval of the leader to detect a stale leader. Must be at least 1 millisecond.

10

long

camel.cluster.file.acquireLockIntervalUnit

The time unit of acquireLockInterval.

SECONDS

TimeUnit

camel.cluster.file.clusterDataTaskMaxAttempts

How many times a task that accesses the cluster files (creating the root directory, opening the files, reading and writing the data file) runs, counting the first attempt and the retries after a failure or a timeout. Useful when the root directory is on network storage, where I/O operations can block for long or unpredictable periods.

5

int

camel.cluster.file.clusterDataTaskTimeout

The timeout of each attempt of a task that accesses the cluster files. An attempt that takes longer is canceled and retried, up to clusterDataTaskMaxAttempts. Useful when the root directory is on network storage, where I/O operations can block for long or unpredictable periods.

10

long

camel.cluster.file.clusterDataTaskTimeoutUnit

The time unit of clusterDataTaskTimeout.

SECONDS

TimeUnit

camel.cluster.file.enabled

Whether to enable this cluster service.

true

boolean

camel.cluster.file.heartbeatTimeoutMultiplier

Multiplier applied to the cluster leader acquireLockInterval to determine how long followers should wait before considering the leader stale. For example, if the leader updates its heartbeat every 2 seconds and the heartbeatTimeoutMultiplier is 3, followers will tolerate up to 2s * 3 = 6s of silence before declaring the leader unavailable.

5

int

camel.cluster.file.root

The directory that all the cluster members share, usually on a shared file system. It holds a lock file and a data file for each namespace, named after the namespace (the data file with the .dat extension).

String

Camel Kubernetes Cluster Service configurations

The camel.cluster.kubernetes supports 15 options, which are listed below.

Name Description Default Type

camel.cluster.kubernetes.clusterLabels

The labels that select the pods of the cluster members in their namespace. Only running and ready pods are members, and only a member can be the leader. When it is not set, all the pods of the namespace.

Map

camel.cluster.kubernetes.configuration

An existing configuration of the Kubernetes client (KubernetesConfiguration), such as credentials and certificates. masterUrl, namespace and connectionTimeout override its values when they are set.

KubernetesConfiguration

camel.cluster.kubernetes.connectionTimeout

The timeout in milliseconds to establish a connection to the API server. When it is not set, a third of renewDeadlineMillis, at least 3000 and at most 30000. Applied only when masterUrl is a URL.

Integer

camel.cluster.kubernetes.enabled

Whether to enable this cluster service.

true

boolean

camel.cluster.kubernetes.groupName

Not used: each view of the cluster service uses the namespace it is created for (for example the namespace of a master endpoint) as its lock group.

String

camel.cluster.kubernetes.jitterFactor

The factor that randomizes the delay between two checks of the leadership, so that the pods do not call the API server at the same instant: the delay is retryPeriodMillis multiplied by a random value between 1 and this factor. Must be at least 1.

1.2

double

camel.cluster.kubernetes.kubernetesResourceName

The name of the ConfigMap that holds the leases, or the prefix of the names of the Lease resources (see leaseResourceType).

leaders

String

camel.cluster.kubernetes.kubernetesResourcesNamespace

The namespace of the leases and of the cluster member pods. When it is not set, the namespace of the Kubernetes client.

String

camel.cluster.kubernetes.leaseDurationMillis

The duration of the lease in milliseconds: a pod that acquired the lease waits this long before it acts as leader, and a leader that gives up waits this long before it releases the lease. Must be greater than renewDeadlineMillis.

15000

long

camel.cluster.kubernetes.leaseResourceType

The type of the Kubernetes resource that holds the leases: Lease (one Lease per group, named kubernetesResourceName-group) or ConfigMap (one ConfigMap named kubernetesResourceName, with an entry per group).

Lease

LeaseResourceType

camel.cluster.kubernetes.masterUrl

The URL of the Kubernetes API server. When it is not set, or set to local or client, the Kubernetes client is created from the auto-detected configuration (kubeconfig file, in-cluster service account, system properties and environment variables), and namespace and connectionTimeout are not applied to it.

String

camel.cluster.kubernetes.namespace

The default namespace of the Kubernetes client, and so the namespace of the leases and of the cluster member pods when kubernetesResourcesNamespace is not set. Applied only when masterUrl is a URL.

String

camel.cluster.kubernetes.podName

The name of this pod, which identifies it as cluster member and leader. When it is not set, the HOSTNAME environment variable, or else the local host name.

String

camel.cluster.kubernetes.renewDeadlineMillis

The time in milliseconds after which a leader that could not renew its lease stops its services, as it may have lost the leadership. Must be greater than jitterFactor multiplied by retryPeriodMillis.

10000

long

camel.cluster.kubernetes.retryPeriodMillis

The time in milliseconds between two checks of the leadership, to acquire or renew it, randomized with jitterFactor.

2000

long

Camel ZooKeeper Cluster Service configurations

The camel.cluster.zookeeper supports 12 options, which are listed below.

Name Description Default Type

camel.cluster.zookeeper.basePath

The ZooKeeper path under which each cluster namespace has its leader election node, named basePath/namespace.

String

camel.cluster.zookeeper.connectTimeout

The time in milliseconds that Curator waits for the connection to ZooKeeper before an operation fails with a connection loss.

15000

long

camel.cluster.zookeeper.enabled

Whether to enable this cluster service.

true

boolean

camel.cluster.zookeeper.id

The id of this cluster member, used as its participant id in the leader election. Must be unique among the cluster members.

String

camel.cluster.zookeeper.maxCloseWait

The time in milliseconds that closing the Curator client waits for its background threads to end.

1000

long

camel.cluster.zookeeper.namespace

The Curator namespace, a path (without a leading slash) that Curator puts in front of all the paths it uses, basePath included.

String

camel.cluster.zookeeper.nodes

The ZooKeeper servers to connect to, as host:port separated by commas, for example zk1:2181,zk2:2181,zk3:2181.

String

camel.cluster.zookeeper.reconnectBaseSleepTime

The base sleep time in milliseconds of the exponential backoff between two retries: the n-th retry waits this time multiplied by a random number from 1 to 2^n - 1. Not used when retryPolicy is set.

1000

long

camel.cluster.zookeeper.reconnectMaxRetries

The maximum number of times that Curator retries a ZooKeeper operation that failed on a connection problem, with exponential backoff. At most 29. Not used when retryPolicy is set.

3

int

camel.cluster.zookeeper.reconnectMaxSleepTime

The maximum sleep time in milliseconds between two retries. When not set, the sleep time has no upper limit. Not used when retryPolicy is set.

long

camel.cluster.zookeeper.retryPolicy

A custom Curator RetryPolicy to retry the failed ZooKeeper operations with. When not set, an ExponentialBackoffRetry built from reconnectBaseSleepTime, reconnectMaxRetries and reconnectMaxSleepTime.

RetryPolicy

camel.cluster.zookeeper.sessionTimeout

The ZooKeeper session timeout in milliseconds that Curator requests; the server bounds it between its minimum and maximum session timeouts. When the session expires, ZooKeeper deletes the election node of this member, so another member can become the leader.

60000

long

Camel Consul Cluster Service configurations

The camel.cluster.consul supports 17 options, which are listed below.

Name Description Default Type

camel.cluster.consul.aclToken

The ACL token that the client sends with each request to Consul, in the X-Consul-Token header.

String

camel.cluster.consul.blockSeconds

Not used: the blocking query that watches the lock key waits sessionRefreshInterval seconds.

10

int

camel.cluster.consul.configuration

An existing configuration (ConsulClusterConfiguration). When set, the other options of this cluster service are not used.

ConsulClusterConfiguration

camel.cluster.consul.connectTimeout

The connect timeout in milliseconds of the HTTP client. When not set or 0, the default of the OkHttp client (10 seconds) applies.

int

camel.cluster.consul.datacenter

Not used: the cluster service always uses the datacenter of the Consul agent.

String

camel.cluster.consul.enabled

Whether to enable this cluster service.

true

boolean

camel.cluster.consul.id

The id of this cluster service. Consul identifies the cluster members and the leader by the ids of their Consul sessions, not by this id.

String

camel.cluster.consul.password

The password for HTTP basic authentication to the Consul agent. Used only together with userName.

String

camel.cluster.consul.readTimeout

The read timeout in milliseconds of the HTTP client. When not set or 0, the default of the OkHttp client (10 seconds) applies; the Consul client extends it for the blocking query that watches the lock key.

int

camel.cluster.consul.rootPath

The key prefix in the Consul key/value store under which each cluster namespace has its lock key, named rootPath/namespace.

/camel

String

camel.cluster.consul.sessionLockDelay

The lock delay in seconds of the Consul session: after Consul invalidates the session, no session can acquire the lock it held for this time. Consul accepts 0 to 60 seconds.

5

int

camel.cluster.consul.sessionRefreshInterval

The wait time in seconds of the blocking query that watches the lock key; the session is renewed after each answer, so keep it well below sessionTtl. Also the time to wait before watching again after a failed query.

5

int

camel.cluster.consul.sessionTtl

The time to live in seconds of the Consul session of this member. When the session is not renewed within it, Consul invalidates the session and releases the lock it holds, so another member can take the leadership. Consul accepts 10 to 86400 seconds.

60

int

camel.cluster.consul.sslContextParameters

The SSL configuration of the HTTPS connection to the Consul agent.

SSLContextParameters

camel.cluster.consul.url

The URL of the Consul agent, such as http://localhost:8500 (the default of the Consul client when not set). Use an https URL to connect with sslContextParameters.

String

camel.cluster.consul.userName

The user name for HTTP basic authentication to the Consul agent. Used only together with password.

String

camel.cluster.consul.writeTimeout

The write timeout in milliseconds of the HTTP client. When not set or 0, the default of the OkHttp client (10 seconds) applies.

int

Camel JGroups Raft Cluster Service configurations

The camel.cluster.jgroups-raft supports 5 options, which are listed below.

Name Description Default Type

camel.cluster.jgroups-raft.enabled

Whether to enable this cluster service.

true

boolean

camel.cluster.jgroups-raft.id

The Raft id of this cluster member, which must be one of the members listed in the members attribute of RAFT in the JGroups configuration. Not applied to a configured raftHandle.

String

camel.cluster.jgroups-raft.jgroupsClusterName

The name of the JGroups cluster that the channel joins; all the cluster members must use the same name.

jgroupsraft-master

String

camel.cluster.jgroups-raft.jgroupsConfig

The JGroups XML configuration of the channel, as a file, a URL or a classpath resource. The default raft.xml in the camel-jgroups-raft JAR is a sample for development and tests (UDP multicast without authentication or encryption, and A as the only RAFT member), and a WARN is logged when it is used. In production, set your own configuration, with AUTH and SYM_ENCRYPT or ASYM_ENCRYPT, and the members of the cluster in the members attribute of RAFT.

raft.xml

String

camel.cluster.jgroups-raft.raftHandle

An existing RaftHandle (the JGroups channel and state machine of this member) to use instead of creating one from jgroupsConfig and id. The cluster service connects its channel while cluster views use it, and disconnects the channel, without closing it, when the last view stops.

RaftHandle

Camel Infinispan Remote Cluster Service configurations

The camel.cluster.infinispan supports 16 options, which are listed below.

Name Description Default Type

camel.cluster.infinispan.cacheContainer

An existing org.infinispan.client.hotrod.RemoteCacheManager to get the caches from. When set, the cluster service does not create a RemoteCacheManager, so the hosts, secure, username, password, saslMechanism, securityRealm, securityServerName, cacheContainerConfiguration, configurationUri and configurationProperties options are not used, and it does not stop it.

RemoteCacheManager

camel.cluster.infinispan.cacheContainerConfiguration

The org.infinispan.client.hotrod.configuration.Configuration of the RemoteCacheManager that the cluster service creates when cacheContainer is not set. When set, the hosts, secure, username, password, saslMechanism, securityRealm, securityServerName, configurationUri and configurationProperties options are not used.

Configuration

camel.cluster.infinispan.configuration

An existing configuration (InfinispanRemoteClusterConfiguration). When set, the other options of this cluster service, except id, are not used.

InfinispanRemoteClusterConfiguration

camel.cluster.infinispan.configurationProperties

Hot Rod client configuration properties for the RemoteCacheManager that the cluster service creates, for example socket_timeout=15000. The prefix infinispan.client.hotrod. is added to a key that does not have it. They take precedence over the properties of the configurationUri file. Not used when cacheContainer or cacheContainerConfiguration is set.

Map

camel.cluster.infinispan.configurationUri

The location of a Hot Rod client properties file for the RemoteCacheManager that the cluster service creates, read from the classpath unless it has a prefix such as file:. Not used when cacheContainer or cacheContainerConfiguration is set.

String

camel.cluster.infinispan.enabled

Whether to enable this cluster service.

true

boolean

camel.cluster.infinispan.hosts

The Hot Rod servers to connect to, as host or host:port separated by semicolons, for example server1:11222;server2:11222. The port defaults to 11222. Not used when cacheContainer or cacheContainerConfiguration is set.

String

camel.cluster.infinispan.id

The id of this cluster member, stored as the value of the leader key of the cache while this member is the leader. Must be unique among the cluster members.

String

camel.cluster.infinispan.lifespan

The lifespan of the leader key and of the membership entry of this member in the cache; they are refreshed every half lifespan, so a leader that stops refreshing loses the leadership when its key expires. In the unit of lifespanTimeUnit, and at least 2.

30

long

camel.cluster.infinispan.lifespanTimeUnit

The time unit of lifespan.

SECONDS

TimeUnit

camel.cluster.infinispan.password

The password to authenticate with the Infinispan server. Only used when secure is true.

String

camel.cluster.infinispan.saslMechanism

The SASL mechanism of the authentication, for example SCRAM-SHA-512. If not set, the Hot Rod client uses SCRAM-SHA-256. Only used when secure is true.

String

camel.cluster.infinispan.secure

Whether the Hot Rod client authenticates with the Infinispan server, with the username and password options, which are then required, and the saslMechanism, securityRealm and securityServerName options. Not used when cacheContainer or cacheContainerConfiguration is set.

false

boolean

camel.cluster.infinispan.securityRealm

The name of the security realm of the user. If not set, the Hot Rod client uses default. Only used when secure is true.

String

camel.cluster.infinispan.securityServerName

The server name of the SASL authentication. If not set, the Hot Rod client uses infinispan. Only used when secure is true.

String

camel.cluster.infinispan.username

The username to authenticate with the Infinispan server. Only used when secure is true.

String

Package Scanning

Available since Camel 3.16

When running Camel standalone via camel-main JAR, then Camel will use package scanning to discover:

  • Camel routes by discovering RouteBuilder classes

  • Camel configuration classes by discovering CamelConfiguration classes or classes annotated with @Configuration.

  • Camel type converters by discovering classes annotated with @Converter

To use package scanning then Camel needs to know the base package to use as offset. This can be specified either with the camel.main.basePackage option or via Main class as shown below:

package com.foo.acme;

public class MyCoolApplication {

    public static void main(String[] args) {
        Main main = new Main(MyCoolApplication.class);
        main.run();
    }

}

In the example above, then we use com.foo.acme as the base package, which is done by passing in the class in the Main constructor. This is similar with how Spring Boot does this.

Camel will then scan from the base package and the sub packages.

Disabling Package Scanning

Package scanning can be turned off by setting camel.main.basePackageScanEnabled=false.

There is a little overhead when using package scanning as Camel performs this scan during startup.

Configuring Camel Main applications

You can use configuration classes to configure Camel Main applications from Java.

In Camel 3.16 onwards the configuration classes must either implement the interface org.apache.camel.CamelConfiguration, or be annotated with @Configuration (or both). In previous versions this was not required.

For example to configure a Camel application by creating custom beans you can do:

public class MyConfiguration implements CamelConfiguration {

    @BindToRegistry
    public MyBean myAwesomeBean() {
        MyBean bean = new MyBean();
        // do something on bean
        return bean;
    }

    public void configure(CamelContext camelContext) throws Exception {
        // this method is optional and can be omitted
        // do any kind of configuration here if needed
    }

}

In the configuration class you can also have custom methods that creates beans, such as the myAwesomeBean method that creates the MyBean and registers it with the name myAwesomeBean (defaults to method name).

This is similar to Spring Boot where you can also do this with the Spring Boot @Bean annotations, or in Quarkus/CDI with the @Produces annotation.

Using annotation based configuration classes

Instead of configuration classes that implements CamelConfiguration, you can annotate the class with org.apache.camel.@Configuration as shown:

@Configuration
public class MyConfiguration {

    @BindToRegistry
    public MyBean myAwesomeBean() {
        MyBean bean = new MyBean();
        // do something on bean
        return bean;
    }
}

Specifying custom beans

Custom beans can be configured in camel-main via properties (such as in the application.properties file).

For example to create a DataSource for a Postgress database, you can create a new bean instance via #class: with the class name (fully qualified). Properties on the data source can then additional configured such as the server and database name, etc.

camel.beans.myDS = #class:org.postgresql.jdbc3.Jdbc3PoolingDataSource
camel.beans.myDS.dataSourceName = myDS
camel.beans.myDS.serverName = mypostrgress
camel.beans.myDS.databaseName = test
camel.beans.myDS.user = testuser
camel.beans.myDS.password = testpassword
camel.beans.myDS.maxConnections = 10

The bean is registered in the Camel Registry with the name myDS.

If you use the SQL component then the datasource can be configured on the SQL component:

camel.component.sql.dataSource = #myDS

To refer to a custom bean you may want to favour using #bean: style, as this states the intention more clearly that its referring to a bean, and not just a text value that happens to start with a # sign:

camel.component.sql.dataSource = #bean:myDS

Creating a custom map bean

When creating a bean as a java.util.Map type, then you can use the [] syntax as shown below:

camel.beans.myApp[id] = 123
camel.beans.myApp[name] = Demo App
camel.beans.myApp[version] = 1.0.1
camel.beans.myApp[username] = goofy

Camel will then create this as a LinkedHashMap type with the name myApp which is bound to the Camel Registry, with the data defined in the properties.

If you desire a different java.util.Map implementation, then you can use #class style as shown:

camel.beans.myApp = #class:com.foo.MyMapImplementation
camel.beans.myApp[id] = 123
camel.beans.myApp[name] = Demo App
camel.beans.myApp[version] = 1.0.1
camel.beans.myApp[username] = goofy

Creating a custom bean with constructor parameters

When creating a bean then parameters to the constructor can be provided. Suppose we have a class MyFoo with a constructor:

public class MyFoo {
    private String name;
    private boolean important;
    private int id;

    public MyFoo(String name, boolean important, int id) {
        this.name = name;
        this.important = important;
        this.id = id;
    }
}

Then we can create a bean instance with name foo and provide parameters to the constructor as shown:

camel.beans.foo = #class:com.foo.MyBean("Hello World", true, 123)

Creating custom beans from a builder

A class that has no public no-arg constructor but a public static builder() or newBuilder() method (Lombok @Builder, Immutables, LangChain4j, Spring AI, the AWS SDK v2, Jackson, protobuf, the JDK HttpClient and many others) is created via its builder: Camel calls the builder() method, sets the properties on the returned builder, and creates the bean with its build() method. A LangChain4j chat model is then declared like any other bean, with the property names of the builder’s fluent setters:

camel.beans.chatModel = #class:dev.langchain4j.model.ollama.OllamaChatModel
camel.beans.chatModel.baseUrl = http://localhost:11434
camel.beans.chatModel.modelName = qwen2.5
camel.beans.chatModel.timeout = 2m

If the builder has no build() method, Camel uses its single public no-arg method that returns the type. A class that has a public no-arg constructor is created with the constructor as usual, even if it also has a builder() method; a class whose builder is a separate class, or has several methods that return the type, is declared in YAML or XML with builderClass and builderMethod (see the YAML DSL).

Creating custom beans with factory method

When creating a bean then parameters to a factorty method can be provided. Suppose we have a class MyFoo with a static factory method:

public class MyFoo {
    private String name;
    private boolean important;
    private int id;

    private MyFoo() {
        // use factory method
    }

    public static MyFoo buildFoo(String name, boolean important, int id) {
        MyFoo foo = new MyFoo();
        foo.name = name;
        foo.important = important;
        foo.id = id;
        return foo;
    }
}

Then we can create a bean instance with name foo and provide parameters to the static factory method as shown:

camel.beans.foo = #class:com.foo.MyBean#buildFoo("Hello World", true, 123)
The syntax must use #factoryMethodName to tell Camel that the bean should be created from a factory method.

Optional parameters on beans

If a parameter on a bean is not mandatory then the parameter can be marked as optional using ? syntax, as shown:

camel.beans.foo = #class:com.foo.MyBean("Hello World", true, 123)
camel.beans.foo.?company = Acme

Then the company parameter is only set if MyBean has this option (silent ignore if no option present). Otherwise, if a parameter is set, and the bean does not have such a parameter, then an exception is thrown by Camel.

Optional parameter values on beans

If a parameter value on a bean is configured using Property Placeholder and the placeholder is optional, then the placeholder can be marked as optional using ? syntax, as shown:

camel.beans.foo = #class:com.foo.MyBean("Hello World", true, 123)
camel.beans.foo.company = {{?companyName}}

Then the company parameter is only set if there is a property placeholder with the key companyName (silent ignore if no option present).

Default parameter values on beans

It is possible to supply a default value (using :defaultValue) if the placeholder does not exist as shown:

camel.beans.foo = #class:com.foo.MyBean("Hello World", true, 123)
camel.beans.foo.company = {{?companyName:Acme}}

Here the default value is Acme that will be used if there is no property placeholder with the key companyName.

Nested parameters on beans

You can configure nested parameters separating them via . (dot).

For example given this Country class:

public class Country {
    private String iso;
    private String name;

    public void setIso(String iso) {
        this.iso = iso;
    }

    public void setName(String name) {
        this.name = name;
    }
}

Which is an option on the MyBean class. Then we can then configure its iso and name parameter as shown below:

camel.beans.foo = #class:com.foo.MyBean("Hello World", true, 123)
camel.beans.foo.country.iso = USA
camel.beans.foo.country.name = United States of America

Camel will automatically create an instance of Country if MyBean has a getter/setter for this option, and that the Country bean has a default no-arg constructor.

Configuring singleton beans by their type

In the example above the SQL component was configured with the name of the DataSource. There can be situations where you know there is only a single instance of a data source in the Camel registry. In such a situation you can instead refer to the class or interface type via the #type: prefix as shown below:

camel.component.sql.dataSource = #type:javax.sql.DataSource

If there is no bean in the registry with the type javax.sql.DataSource then the option isn’t configured.

Autowiring beans

The example above can be taken one step further by letting camel-main try to autowire the beans.

camel.component.sql.dataSource = #autowired

In this situation then #autowrired will make Camel detect the type of the dataSource option on the SQL component. Because type is a javax.sql.DataSource instance, then Camel will lookup in the registry if there is a single instance of the same type. If there is no such bean then the option isn’t configured.

Defining a Map bean

You can specify java.util.Map beans in camel-main via properties (such as in the application.properties file).

Maps have a special syntax with brackets as shown below:

camel.beans.mymap[table] = 12
camel.beans.mymap[food] = Big Burger
camel.beans.mymap[cheese] = yes
camel.beans.mymap[quantity] = 1

The Map is registered in the Camel Registry with the name mymap.

Using dots in Map keys

If the Map should contain keys with dots then the key must be quoted, as shown below using single quoted keys:

camel.beans.myldapserver['java.naming.provider.url'] = ldaps://ldap.local:636
camel.beans.myldapserver['java.naming.security.principal'] = scott
camel.beans.myldapserver['java.naming.security.credentials'] = tiger

Defining a List bean

This is similar to Map bean where the key is the index, eg 0, 1, 2, etc:

camel.beans.myprojects[0] = Camel
camel.beans.myprojects[1] = Kafka
camel.beans.myprojects[2] = Quarkus

The List is registered in the Camel Registry with the name myprojects.

Examples

You can find a set of examples using camel-main in Camel Examples which demonstrate running Camel in standalone with camel-main.