One of the kind of applications you can deploy in Apache Karaf is obviously OSGi bundle.
The bundle is the core deployment unit when using OSGi. It's basically a regular jar file containing some additional headers in the MANIFEST used by the OSGi framework, and so Karaf.
karaf-bundle-example-providerimplements and exposes a
BookingServicein the OSGi service registry.
karaf-bundle-example-clientexposes a new
BookingService. This service is used to periodically manipulate the
karaf-bundle-example-featurescontains a Karaf features repository used for the deployment.
mvn clean install
## Feature and Deployment
On a running Karaf instance, you register the bundle example features repository with:
karaf@root()> feature:repo-add mvn:org.apache.karaf.examples/karaf-bundle-example-features/LATEST/xml
Then you can install the
karaf@root()> feature:install karaf-bundle-example-provider
Now, you can install the
karaf@root()> feature:install karaf-bundle-example-client
When you install the client feature, you should see on the console:
karaf@root()> 1794197511025182174 | John Doo | AF3030