felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benson Margulies (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FELIX-4885) Support a read-only mode
Date Tue, 12 May 2015 10:15:59 GMT
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:

  // 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");

This message was sent by Atlassian JIRA

View raw message