[ 
https://issues.apache.org/jira/browse/FELIX-3395?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carsten Ziegeler resolved FELIX-3395.
-------------------------------------
    Resolution: Won't Fix

It looks like there is nothing to be done here, therefore closing won't fix. If 
you think that still there is something to be done in the prefs module, please 
reopen and comment. Thanks

> Make preferences persistence location configurable
> --------------------------------------------------
>
>                 Key: FELIX-3395
>                 URL: https://issues.apache.org/jira/browse/FELIX-3395
>             Project: Felix
>          Issue Type: Wish
>          Components: Preferences Service
>            Reporter: Pieter
>
> I want Preference Service to persist stored preferences and have them survive 
> system restarts. Preference Service stores its stuff in the OSGi frameworks' 
> cache region, which get cleared on restart (by Pax Runner, which is what I 
> use). Trying to get around this was problematic, so I figured it would be 
> nice to be able have the preferences database outside the cache directory. A 
> system property like "felix.prefs.rootdir" could be used to set the location.
> I patched the Preference Service from trunk to get this feature and the 
> changes are minimal, I just added the following lines to the 
> DataFileBackingStoreImpl constructor:
>         String configuredRootDir = System.getProperty("felix.prefs.rootdir");
>         this.rootDirectory = configuredRootDir == null ? 
> context.getDataFile("") : new File(configuredRootDir);
>         this.rootDirectory.mkdirs();



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to