O'Reilly logo

Instant Apache ServiceMix How-to by Henryk Konsek

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Installing a non-OSGI JAR as a bundle (Become an expert)

Sooner or later you would like to include a non-OSGI JAR file into your ServiceMix project. This recipe will guide you through the process of installing regular JAR files as OSGI bundles.

Getting ready

Before we start, all you need to do is start your ServiceMix container.

How to do it...

In the ServiceMix shell, execute the following command: osgi:install wrap:mvn:groupId/artifactId/version. For example, to install Apache Commons Logging library in Version 1.1 as the OSGI bundle, type osgi:install wrap:mvn:commons-logging/commons-logging/1.1.

How it works...

ServiceMix uses the OSGI bundles to organize the modules deployed into it (as well as their dependencies). If we want to use a JAR file ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required