Have a look at [1], section 9.1.2.1. [1] http://docs.spring.io/spring-osgi/docs/1.2.0-m2/reference/html/compendium.html
Raúl. On 15 Aug 2015 09:29, "chaituu" <yarlagadd...@gmail.com> wrote: > properties are getting not reloaded in case of spring dm.it works fine in > case of blue print xml and properties are reloaded when changes happen and > deploy the profile in jboss fuse. > > in blueprint cm:property-placeholder is having update-strategy attribute > which does the properties reloaded where as in spring dm > osgix:cm-properties does not have reload property .properties are not > getting refreshed in spring. > > blueprint > ********* > > <cm:property-placeholder id="myConfig" persistent-id="test" > update-strategy="reload"/> > > spring > ****** > > <osgix:cm-properties id="cmProps" persistent-id="test"/> > ******************************************************** > <?xml version="1.0"?> > > <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" > > xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0" > > xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"> > > > <cm:property-placeholder id="myConfig" persistent-id="test" > update-strategy="reload"/> > > <camelContext id="log-example-context" > xmlns="http://camel.apache.org/schema/blueprint" > > <propertyPlaceholder id="properties" > location="blueprint:myConfig"/> > > <route id="log-route"> > <from uri="timer:foo?period=5s"/> > <setBody> > <simple>Hello from Fabric based Camel route!</simple> > </setBody> > <log message=">>> ${body} : ${sys.runtime.id} > .sample:..{{sample}}"/> > </route> > </camelContext> > > </blueprint> > ********************** > <?xml version="1.0"?> > > <beans xmlns="http://www.springframework.org/schema/beans" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:camel="http://camel.apache.org/schema/spring" > xmlns:osgix="http://www.springframework.org/schema/osgi-compendium" > xmlns:ctx="http://www.springframework.org/schema/context" > xsi:schemaLocation=" > http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans.xsd > http://camel.apache.org/schema/spring > http://camel.apache.org/schema/spring/camel-spring.xsd > http://www.springframework.org/schema/osgi-compendium > > http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium.xsd > http://www.springframework.org/schema/context > http://www.springframework.org/schema/context/spring-context.xsd"> > > > > <osgix:cm-properties id="cmProps" persistent-id="test"/> > > <camel:camelContext id="log-example-context" > xmlns="http://camel.apache.org/schema/spring" > > > > <propertyPlaceholder id="properties" location="ref:cmProps"/> > > <route id="log-route"> > <from uri="timer:foo?period=5s"/> > <setBody> > <simple>Hello from Fabric based Camel route!</simple> > </setBody> > <log message=">>> ${body} : ${sys.runtime.id} ..{{sample}}."/> > </route> > </camel:camelContext> > > </beans> > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/spring-osgix-cm-properties-not-reloading-the-properties-tp5770739.html > Sent from the Camel - Users mailing list archive at Nabble.com. >