Thanks David for explaining. I'll read more about the config admin spec and
Karaf.

Regards,
Allan C.

On Tue, Jul 5, 2016 at 9:42 AM, David Jencks <[email protected]>
wrote:

> I can’t guess anything about which extenders you might be using, but….
> compliant consumers of config admin Configurations only look at
> configurations whose bundle location is compatible with the bundle being
> configured.  It’s recommended that configuration management agents (such as
> IIUC felix fileinstall working on configurations) install an explicit
> bundle location.  If a Configuration is possibly intended for use by
> several bundles using a compatible multi-location is appropriate.  If you
> don’t care which bundles can see the configuration, using “?” as the
> location matches all bundles.
>
> Felix DS has recently been updated to not set the bundle location on
> configurations itself, however it’s possible that other extenders such as
> blueprint might set the location, making the configuration unavailable to
> the second bundle.
>
> In other words, possibly this is an effect of the config admin spec on
> configurations without an explicit bundle location.  I don’t know if
> anything in karaf lets you set a bundle location explicitly.
>
> david jencks
>
> > On Jul 4, 2016, at 6:00 PM, Allan C. <[email protected]> wrote:
> >
> > I encountered this issue when I was installing some of my bundles. I've
> narrowed it down to I think what is the cause of the issue.
> >
> > For instance, bundle A and B contains the following:
> >
> > <cm:property-placeholder persistent-id="com.bundle"
> update-strategy="reload" />
> >
> > When first bundle is installed, it works fine. But when second bundle is
> installed, it will restart indefinitely. As a workaround, my bundles are
> now referring to different config files.
> >
> > Could someone test if it happens to you too? Thanks.
> >
> > Regards,
> > Allan C.
>
>

Reply via email to