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 2023/05/23 12:01:00 UTC

[jira] [Resolved] (CAMEL-19380) camel-core - CamelContext should use plugin for RuntimeConfiguration

     [ https://issues.apache.org/jira/browse/CAMEL-19380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-19380.
---------------------------------
    Resolution: Won't Fix

Okay after more investigations then the startup ordering requires to be using Ordered and Phased in Spring framework, to let Camel startup in the correct order with route collecting and whatnot.

We cannot use SmartLifecycle, and we manually start Camel in the onEvent from Spring.

> camel-core - CamelContext should use plugin for RuntimeConfiguration
> --------------------------------------------------------------------
>
>                 Key: CAMEL-19380
>                 URL: https://issues.apache.org/jira/browse/CAMEL-19380
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 4.0-RC1, 4.0
>
>
> It would be good to move RuntimeConfiguration as a plugin to CamelContext so its API is loosly coupled as today CamelContext extends RuntimeConfiguration which is not good.
> This would mean there are some API changes that some end users may need to adjust.
> from:
> camelContext.setAutoStartup(true);
> to:
> camelContext.getRuntimeConfiguration().setAutoStartup(true);



--
This message was sent by Atlassian Jira
(v8.20.10#820010)