Apache Felix File Install
This page collects all the original posts appeared in the OSGi Look on this topic. Check also the OSGi Recipes for more articles and tutorials
The Apache Felix File Install is a simple bundle to provision OSGi applications. Originally developed by Peter Kriens, it is now a subproject of Apache Felix.
This bundle can:
- poll a folder in the filesystem to find bundles. When new bundles are found, they are installed in the OSGi container; modified bundles are automatically updated
- poll a folder in the filesystem to find property files. When a new property file is found, it’s content is pushed into OSGi Configuration Admin Service
Manage your OSGi application with Apache Felix File Install
A while ago we introduced in this blog a little interesting bundle called Apache Felix File Install. This bundle has actually gone a long way since then, and now it’s even part of Sun Microsystem open source application server Glassfish.
The reason this simple bundle is quite interesting to OSGi developers is that it provides a simple mechanism to give your application an extensible and updatable structure.
Dynamic Configurations with File Install
Another interesting feature of the File Install bundle is its ability to load property files and send them to the OSGi ConfigurationAdmin service; that’s very useful if you want to be able to configure your applications just creating/deleting and updating properties file at runtime. In this post I’ll enhance the project presented in the previous article to include this new functionality.
