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> 
About these ads
This entry was posted in karaf, osgi, servicemix, Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s