Hi,

For sure if the prerequisite feature contains the config, the config will be 
there before the features.

So, by default, the features are installed async (its own provisioning thread), 
so, your SCR bundle can start while config is not populated yet.
With required config, start method will be called only when the config is there.

The state of the bundle and the state of SCR components are different (that’s 
why your bundle can be active, whereas some components are not started). You 
should better use scr:list and scr:info.

What Karaf version are you using ? If you tested 4.2.9, can you try 4.2.8 (I 
did a fix in FileInstall affecting 4.2.9) ?

Regards
JB

> Le 21 sept. 2020 à 19:55, Steinar Bang <s...@dod.no> a écrit :
> 
>>>>>> Francois Papon <francois.pa...@openobject.fr>:
> 
>> Hi,
>> May be you can try with:
> 
>> @Component(immediate = true, configurationPolicy =
>> ConfigurationPolicy.REQUIRE)
> 
> With this annotation in place, the breakpoint in the @Activate method
> wasn't called on initial startup (all bundles still showed up as
> Active... is this expected?).
> 
> When the 
> no.priv.bang.oldalbum.roleadder.test.ShiroRoleAdderForOldalbumTestEnvironment.cfg
> file was in the etc directory, the breakpoint was triggered.
> 
> I tried both with and without prerequisite="true", and the behaviour was
> identical.
> 
> Thanks!
> 

Reply via email to