[
https://issues.apache.org/jira/browse/ARIES-1233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14077906#comment-14077906
]
Jamie goodyear commented on ARIES-1233:
---------------------------------------
The producer contains the following in its Blueprint:
{code}
<!-- Use this to read configuration properties from etc folder on Karaf -->
<cm property-placeholder persistent-id="fu.bar.producer"
update-strategy="reload">
<cm default-properties>
<cm property name="FOO" value="consumerB" />
</cm default-properties>
</cm property-placeholder>
<bean id="serviceName" class="fu.bar.producer.someClass" init-method="init" />
<service ref="serviceName" interface="fu.bar.common.api.someClass">
</service>
{code}
> Stale service reference retention on consumer bundle after service provider
> bundle update.
> ------------------------------------------------------------------------------------------
>
> Key: ARIES-1233
> URL: https://issues.apache.org/jira/browse/ARIES-1233
> Project: Aries
> Issue Type: Bug
> Components: Blueprint
> Environment: Apache Karaf 3.0.1
> Reporter: Jamie goodyear
>
> Three Bundles, A, B, and C.
> Bundle A provides a service, which is wired via BP.
> Bundles B and C consume the service via BP references. Service trackers are
> enabled, showing that both bundles are aware of when the service provider
> updates.
> Bundle A configuration property tells the service to use bundle B or C for
> processing. Upon a configuration update the consuming bundles B and C will
> contain stale references to the Bundle A service. Refreshing/Restarting their
> bundles will correct the wiring. The BP container should refresh these
> service references automatically.
> I'm working on a stripped down demonstration test case to illustrate the
> issue.
--
This message was sent by Atlassian JIRA
(v6.2#6252)