You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Bob Paulin (Jira)" <ji...@apache.org> on 2019/11/27 05:01:00 UTC
[jira] [Commented] (CAMEL-14215) Camel Main for OSGi
[ https://issues.apache.org/jira/browse/CAMEL-14215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16983171#comment-16983171 ]
Bob Paulin commented on CAMEL-14215:
------------------------------------
Created the an initial implementation in [https://github.com/bobpaulin/camel/tree/feature/camel-main-osgi] .
This initial work does the following:
Creates a camel-core module called camel-main-osgi that fulfills the goals stated in the Jira.
This registers a CamelContext as an OSGi Service (Should this be a different interface or multiple interfaces? ModelCamelContext? )
Converte unit tests to the karaf harness as dependencies already exist in the Camel Project
Places the camel-main-osgi in the camel-core karaf feature. (Should this be it's own separate feature?)
CC [~jbonofre]
> Camel Main for OSGi
> -------------------
>
> Key: CAMEL-14215
> URL: https://issues.apache.org/jira/browse/CAMEL-14215
> Project: Camel
> Issue Type: New Feature
> Components: camel-core, camel-main
> Affects Versions: 3.x
> Reporter: Bob Paulin
> Assignee: Jean-Baptiste Onofré
> Priority: Major
> Labels: karaf, osgi
> Fix For: 3.1.0
>
>
> The current camel-core-osgi implementation sets up everything to work in an OSGi environment but does not start the OsgiDefaultCamelContext . Currently Spring Boot has an implementation that recognizes RouteBuilder components and adds them to the context at starter. This issue is to create a similar OSGi implementation that achieves the following goals:
>
> 1) Starts a CamelContext the is available to the entire runtime.
> 2) Detects and adds RouteBuilders that have been registered as services in the runtime prior to the Context Starting.
> 3) Detects and adds new RouteBuilders that are registered after the context is started.
> 4) Detects and removes RouteBuilders as they are de-registered from the runtime.
> 5) Allows the runtime to stop the CamelContext when the runtime or bundle is stopped.
>
>
> For discussion see [https://lists.apache.org/thread.html/63506b8fac49c9f50a921ba0fd81ed37e69c66ad778fb9d16adb90c3@%3Cdev.camel.apache.org%3E]
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)