RSS

Monthly Archives: October 2010

Using Karaf Features to deploy OSGi bundles

Have you ever found yourself deploying and undeploying a set of bundles into Apache ServiceMix? Do you need an easy way to install these bundles? To make this easy for yourself and your clients, you can use Karaf Features. A feature is a special kind of XML file, known as feature repository.

Here is an example for a custom feature:

<features name="MyCustomRepository">
    <feature name="my-custom-feature">
        <bundle>mvn:com.mycompany.example/myBundleName1/1.0</bundle>
        <bundle>mvn:com.mycompany.example/myBundleName2/1.0</bundle>
    </feature>
</features> 
 
2 Comments

Posted by on October 29, 2010 in karaf, osgi, servicemix, Uncategorized

 
 
%d bloggers like this: