Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you are in a hurry to have Apache ServiceMix Kernel Felix Karaf up and running right away, this section will provide you with some basic steps for downloading, building (when needed) and running the server in no time. This is clearly not a complete guide so you may want to check other sections of this guide for further information.

...

Background

Apache ServiceMix Kernel Felix Karaf is a small and lightweight OSGi based runtime. This provides a small lightweight container onto which various bundles can be deployed.

...

At this time you have one option to get the software. The fastest and easiest way is to get the binary directly from the Apache site. Since this article is intended to help you to have Apache ServiceMix Kernel Felix Karaf up and running in the fastest way only the binary download will be covered at this time.

...

Although this installation path is the fastest one, still you will need to install some software before installing ServiceMix KernelKaraf.

ServiceMix Kernel Karaf requires a Java 5 environment to run. Refer to http://java.sun.com for details on how to download and install J2SE 1.5 or greater.

...

Depending on the platform you plan to install and run Apache ServiceMix Karaf you will select the appropriate installation image. Open a Web browser and access the following URL, there you will find the available packages for download (binaries and source code).

...

Select the file compression format compatible with your system (zip for windows, tar.gz for unixes) by clicking directly on the link, download it and expand the binary to your hard drive in a new directory; for example in z:\servicemix - from now on this directory will be referenced as <SERVICEMIX_HOME>. Please remember the restrictions concerning illegal characters in Java paths, e.g. !, % etc.

The installation of Apache ServiceMix Kernel Karaf is as simple as uncompressing the .zip or .tar files. The next step is to start the server.

1. Quick Start

Start the server

With Apache ServiceMix Kernel Karaf already installed, open a command line console and change directory to <SERVICEMIX_HOME>. To start the server, run the following command in Windows:

...

  1. Launching SMX4 can result in a deadlock in Felix during module dependency resolution. This is often a result of sending a SIGINT (control-C) to the process when it will not cleanly exit. This can corrupt the caches and cause startup problems in the very next launch. It is fixed by emptying the component cache:
    Code Block
    rm -rf data/cache/*
    

Stopping

...

Karaf

To stop ServiceMix Kernel Karaf from the console, run the following command:

...

This document showed you how simple it is to have Apache ServiceMix Kernel Felix Karaf up and running. The overall time for getting the server running should be less than five minutes if you have the prerequisite (Java 1.5) already installed. Additionally, this article also showed you how to deploy and test a simple Apache Camel application in less than five minutes.

...