Versions Compared

Key

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

...

Panel
bgColor#000000

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

Type 'help' for more information.
--------------------------------------------------------------------------------------------------------------------------------
gnodet@Guillaume-Nodets-MacPro.local:/>

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

Panel
bgColor#000000

No Format
nopaneltrue

gnodet@Guillaume-Nodets-MacPro.local:/> help

For information about ServiceMix, visit:
    http://servicemix.apache.org 

Available commands:
  .                     Alias to: source
  ?                     Alias to: help
  clear                 Clear the terminal screen
  create                Create a new ServiceMix instance
  echo                  Echo or print arguments to STDOUT
  exit                  Exit the (sub)shell
  help                  Show command help
  info                  Show system informations
  set                   Set a variable
  source                Load a file/url into the current shell
  unset                 Unset a variable

Available shells:
  features
  obr
  osgi
  remote
  wrapper

#top

Deploy a sample application

...

The example installed is using Camel to start a timer every 2 seconds and output a message on the console.

Code Block

>>>> MyTransform set body:  Wed Jan 02 23:34:19 CET 2008
>>>> MyTransform set body:  Wed Jan 02 23:34:21 CET 2008

Stopping and uninstalling the sample application

...

To stop this demo, run the following command:

Code Block

osgi list

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 [id]

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

Code Block

osgi start [id]

To uninstall the demo, run the following command:

Code Block

osgi uninstall [id]

Summary

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

...