You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Benson Margulies (JIRA)" <ji...@apache.org> on 2015/05/12 12:15:59 UTC
[jira] [Created] (FELIX-4885) Support a read-only mode
Benson Margulies created FELIX-4885:
---------------------------------------
Summary: Support a read-only mode
Key: FELIX-4885
URL: https://issues.apache.org/jira/browse/FELIX-4885
Project: Felix
Issue Type: Improvement
Components: Framework
Reporter: Benson Margulies
The Equinox container has a handy feature.
You can provision the container with some bundles, shut down, and move the provisioned directory to read-only storage. If you set the right collection of configuration properties, you can then run operate the container. Eclipse, of course, uses this to allow sharing of an install between users.
A bundle can even set up data in the data area while read-write and then read it when read-only. It would be handy if Felix had parallel capability.
The relevant equinox-specific properties are:
{code}
// in spite of the seemingly standard names, these are Equinox-specific.
configProps.put("osgi.configuration.area.readOnly", "true");
configProps.put("osgi.sharedConfiguration.area.readOnly", "true");
configProps.put("osgi.instance.area.readOnly", "true");
configProps.put("osgi.user.area.readOnly", "true");
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)