You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2026/09/28 17:45:00 UTC
[jira] [Work started] (CAMEL-25112) camel-core - The local properties of the properties component should be per thread
[ https://issues.apache.org/jira/browse/CAMEL-25112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on CAMEL-25112 started by Claus Ibsen.
-------------------------------------------
> camel-core - The local properties of the properties component should be per thread
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-25112
> URL: https://issues.apache.org/jira/browse/CAMEL-25112
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
>
> The local properties of the properties component (such as the parameters of a route template, used while creating a route from the template) are kept in a single stack that is shared by all threads (since CAMEL-21675), while the javadoc says they are local for the current thread. Camel starts routes in a thread safe way itself, but to prepare for adding routes dynamically from multiple threads, the local properties should be per thread.
> Also:
> * When starting routes, the local properties are removed after each route, also for a route that did not add any (a route that is not from a route template), which removes local properties added by the caller.
> * camel-main configures {{camel.aiObservability.enabled}} as a local property (that is never removed). As it is removed when the routes are started (see above), and is not seen by other threads, the setting is lost, so {{aiObservability().withEnabled(false)}} does not disable GenAI observability when there are routes. The setting is now configured as an override property.
> _Claude Code on behalf of Claus Ibsen_
--
This message was sent by Atlassian Jira
(v8.20.10#820010)