-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuration persistence never cleaned #54
Comments
|
At least for Felix, I don't think In other words, for Felix, I think you need to pass it as an argument to the Atomos launcher - i.e., something like:
|
The issue is Atomos main does not understand |
Everyday I learn a new detail. Thanks for the explanation. I will verify tomorrow and give a feedback here. Btw, the system property works with the Felix launcher. Probably that is why I thought it should also work with atomos this way. |
@fipro78, right - that is done by the Felix main [0]. The framework is only using the framework properties. |
Hi, just in case someone is coming across this issue in the future, I can confirm that:
Thanks @tjwatson and @karlpauls for the explanation. |
Hi,
while investigating on the behavior of different OSGi runtimes I noticed that the persistence is never cleared when using Atomos.
Attached are two simple setups that use Atomos. The application is basically a Gogo Shell with some commands that use SCR, ConfigAdmin and EventAdmin to verify if things are working.
For Felix the system property
-Dorg.osgi.framework.storage.clean=onFirstInit
should clean the persistence on start.For Equinox I assumed
-clean
should do the same.In both cases the persistence is never cleared. You can check this by starting the application and then call
fipro:configure <some_value>
. Then callfipro:welcome
which actually reads the configuration value and prints it to the console. Then stop the application and start it again. With the mentioned clean parameters thewelcome
command should printnull
, but it always prints the previously configure value. So the configuration persistence area is never cleared.folder_atomos_equinox.zip
folder_atomos_felix.zip
.
The text was updated successfully, but these errors were encountered: