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 2012/07/06 10:34:34 UTC

[jira] [Commented] (CAMEL-3704) Allow endpoints to receive updates from OSGi config admin at runtime

    [ https://issues.apache.org/jira/browse/CAMEL-3704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13407808#comment-13407808 ] 

Claus Ibsen commented on CAMEL-3704:
------------------------------------

This can be hard to track as when the placeholder is resolved, then Camel does not keep track, that this given endpoint / (or whatever it may be) used a placeholder. So you cannot determine which routes/endpoints/whatever would be affected by a OSGi config admin update on a property placeholder.

I dont think this is something we can do easily, or should do. Its the osgi container that can track this on a per bundle level and reload bundles on changes etc.
                
> Allow endpoints to receive updates from OSGi config admin at runtime
> --------------------------------------------------------------------
>
>                 Key: CAMEL-3704
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3704
>             Project: Camel
>          Issue Type: New Feature
>            Reporter: Jonathan Anstey
>             Fix For: Future
>
>
> It would be neat to take advantage of the ability of the OSGi config admin to receive updates to an endpoint's properties at runtime and let Camel handle restarting the underlying services. For instance, you could have a server URL defined as a property
> {code}
>    <osgix:cm-properties id="cmProps" persistent-id="some.config.id">
>       <prop key="myServerUri">http://myserver:8888</prop>
>    </osgix:cm-properties>
>    <ctx:property-placeholder properties-ref="cmProps" />
>    ... ${myServerUri} is used in a Camel endpoint URI somewhere...
> {code}
> In Karaf then you could change the myServerUri to something else and Camel would get the config update (by way of http://www.osgi.org/javadoc/r4v42/org/osgi/service/cm/ManagedService.html) and restart things as appropriate.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira