camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAMEL-3704) Allow endpoints to receive updates from OSGi config admin at runtime
Date Thu, 24 Feb 2011 09:04:38 GMT

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

Guillaume Nodet commented on CAMEL-3704:
----------------------------------------

For example when using Aries Blueprint 0.3, the cm:property-placeholder can be configured
to reload the blueprint application when the configuration has changed, but this is not the
default behavior.
Here's an example:
{code}
<cm:property-placeholder persistent-id="org.apache.karaf.shell" update-strategy="reload">
 ...
</cm:property-placeholder>
{code}
It should work with Camel too.

> 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.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message