简体   繁体   中英

Disabling Cache in Apache Felix

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.

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.

以下是文档: 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);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM