[
https://issues.apache.org/jira/browse/KARAF-3151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14160554#comment-14160554
]
Jean-Baptiste Onofré commented on KARAF-3151:
---------------------------------------------
In myBean, I added a void update(Map<String, Object> props) method.
Using the following blueprint descriptors:
{code}
<bean class="net.nanthrax.karaf.test.MyBean">
<cm:managed-properties persistent-id="my.config"
update-method="refresh" update-strategy="component-managed"/>
</bean>
{code}
or
{code}
<bean class="net.nanthrax.karaf.test.MyBean">
<cm:managed-properties persistent-id="my.config"
update-strategy="container-managed"/>
</bean>
{code}
the update() method is never called.
> Blueprint managed-properties doesn't call the update-method
> -----------------------------------------------------------
>
> Key: KARAF-3151
> URL: https://issues.apache.org/jira/browse/KARAF-3151
> Project: Karaf
> Issue Type: Bug
> Components: karaf-core
> Affects Versions: 3.0.2
> Reporter: Jean-Baptiste Onofré
> Assignee: Jean-Baptiste Onofré
> Priority: Blocker
> Fix For: 3.0.2
>
>
> When defining a bean in blueprint descriptor like this:
> {code}
> <bean id="myBean" class="..." scope="singleton" destroy-method="destroy">
> <cm:managed-properties persistent-id="my.config.id"
> update-strategy="component-managed" update-method="updateOrInit"/>
> </bean>
> {code}
> when the etc/my.config.id.cfg file is modified (for instance changing a
> property), the bean is not called.
> It seems to work fine with Karaf 3.0.1, but not in 3.0.2-SNAPSHOT. I'm
> retesting in 3.0.2-SNAPSHOT and 4.0.0-SNAPSHOT (I'm suspecting a change in
> Aries Blueprint).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)