Versions Compared

Key

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

...

All you need is 5 to 10 minutes and to follow these basic steps.

Background

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

#top1. Quick Start

Getting the software

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 up and running in the fastest way only the binary download will be covered at this time.

...

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

#top1. Quick Start

Start the server

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

...

Panel
bgColor#000000

No Format
nopaneltrue
smx@root:/> help
Available commands:
  about     Display information about the current GShell application.
  help      Display help for the current context.
  exit      Exit the current shell.
  echo      Print arguments to standard output.
  clear     Clear the terminal screen.
  source    Read and execute commands from a file in the current shell environment.
  set       Set a variable or property.
  unset     Unset a variable or property.
  alias     Define an alias.
  unalias   Undefine an alias.
  history   Display history.
  info      Display JVM informations about the current application.
  quit      Link to: exit
  ssh       Connect to a SSH server.
  sshd      Start a SSH server.
  exec      Execute system processes.
  java      Execute a Java standard application.
  sleep     Sleep for a bit then wake up.
  date      Displays the current time and date.
  edit      Edit a file with an external editor.
  find      Find files in a hierarchy.
  hostname  Displays the name of the current host.
  printf    Print formatted output.
  cat       Displays the contents of a file.
  grep      Displays lines matching a pattern.
  print     Link to: echo
  cd        Changes the current directory.
  pwd       Displays the current directory.
  ls        List the contents of a file or directory.
  cp        Copies a file or directory.
  rm        Remove a file or directory.
  fileinfo  Displays information about a file.
  touch     Sets the last-modified time of a file.
  dir       Link to: ls
  copy      Link to: cp
  del       Link to: rm
  osgi      Command group: osgi
  log       Command group: log
  admin     Command group: admin
  packages  Command group: packages
  config    Command group: config
  features  Command group: features

#top1. Quick Start

Deploy a sample application

...

In the output, locate the line containing camel-example-osgi and note the id of the bundle in the first column. Then launch the following command:

Code Block
osgi/stop [SMX4KNL:id]

If you wish, you can start again the sample by using the following command:

Code Block
osgi/start [SMX4KNL:id]

To uninstall the demo, run the following command:

Code Block
osgi/uninstall [SMX4KNL:id]

Common Problems

  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/*
    

...

This document showed you how simple it is to have Apache ServiceMix Kernel 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 Camel application in less than five minutes.

#top1. Quick Start

Wiki Markup
{scrollbar}