7

i'm trying to follow the instructions in this thread (http://osdir.com/ml/dev-felix-apache/2009-05/msg00051.html) to disable file system bundle cache in felix. I couldn not find a concrete example online.

Can somebody help me with this? Is this really working?

Thanks in advance.

Klaus.

skaffman
  • 398,947
  • 96
  • 818
  • 769
Klaus
  • 2,328
  • 5
  • 41
  • 62

2 Answers2

6

It is not possible to disable the bundle cache, it is required by the framework. You can configure it to be cleaned each startup (org.osgi.framework.storage.clean) or you can try to use the approach referenced in your URL to create your own bundle cache. Those are your only options, other than hacking on the framework code itself. The bundle cache has changed a little bit since the info referenced by URL was written, so it is not clear if there was an impact on the approach.

  • That's unfortunate. Is it by any chance possible to provide Felix with my own classloader, say per bundle? Klaus. – Klaus Jul 03 '10 at 04:36
  • For added clarification, I found the following in conf/config.properties # The following property controls whether the bundle cache is flushed # the first time the framework is initialized. Possible values are # "none" and "onFirstInit"; the default is "none". org.osgi.framework.storage.clean=onFirstInit – Dan Lewis Sep 04 '16 at 21:37
0

Here is the documentation : http://felix.apache.org/documentation/subprojects/apache-felix-framework/apache-felix-framework-bundle-cache.html

configurationProperties.setProperty(Constants.FRAMEWORK_STORAGE_CLEAN, Constants.FRAMEWORK_STORAGE_CLEAN_ONFIRSTINIT);
Remi Mélisson
  • 2,724
  • 2
  • 21
  • 13