O'Reilly logo

Learning Apache Karaf by Heath Kesler, Johan Edstrom, Jamie Goodyear

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

High availability / failover

Now that we've tweaked our Karaf configuration into a position to run for an extended period, let's discuss how we can help ensure continued service in the event of a fault.

Installing Karaf as a service

The first step towards a high availability / failover topology is to install Karaf as a service on your host operating system.

Let's review the service setup process.

Install the wrapper feature:

karaf@root> features:install wrapper

Instruct the wrapper to install Karaf as a service, using the following command:

karaf@root> wrapper:install –s AUTO_START –n KARAF –d Karaf –D "Karaf Service"

The first flag option (-s) tells the service to automatically start, the second (-n) sets the service name, the third (-d) the display ...

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