Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add a couple of temporary notes so users understand the relationship between Karaf and ServiceMix

...

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

Tip

Apache Felix Karaf started life as the Apache ServiceMix kernel.
Don't be surprised by any transitional references which remain.

#top

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

...

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.

Download binaries

Info

Karaf is still working towards it's first release at Felix.
Binaries are available from Apache ServiceMix .

Depending on the platform you plan to install and run 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).

...

You should see the following informations on the command line console:

Panel
bgColor#000000

No Format
nopaneltrue

____                  _          __  __ _
/ ___|  ___ _ ____   _(_) ___ ___|  \/  (_)_  __
\___ \ / _ \ '__\ \ / / |/ __/ _ \ |\/| | \ \/ /
 ___) |  __/ |   \ V /| | (_|  __/ |  | | |>  <
|____/ \___|_|    \_/ |_|\___\___|_|  |_|_/_/\_\
No Format
nopaneltrue

ServiceMix Kernel (1.1.0)

Type 'help' for more information.
--------------------------------------------------------------------------------------------------------------------------------
smx@root:/>

You can now run your first command. Simply enter help in the console followed by a carriage return.

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

#top

Deploy a sample application

...