To install and run the camel-osgi demonstration, where the demonstration
        bundle is downloaded from a remote repository, perform the following steps:
Install and start the camel-osgi bundle—at the FUSE ESB console, enter the following command:
servicemix> features install examples-camel-osgi
This command has the effect of both installing and starting the
              camel-osgi bundle. After entering this command, you should soon see
            output like the following being logged to the console screen:
>>>> MyTransform set body: Mon Sep 22 11:43:42 BST 2008 >>>> MyTransform set body: Mon Sep 22 11:43:44 BST 2008 >>>> MyTransform set body: Mon Sep 22 11:43:46 BST 2008
Stop the camel-osgi bundle—to stop the
            camel-osgi bundle, you first need to discover the relevant bundle number.
            To find the bundle number, enter the following console command (this might look a bit
            confusing, because the text you are typing will intermingle with the output that is
            being logged to the screen):
servicemix> osgi list
At the end of the listing, you should see an entry like the following:
[ 126] [Active ] [ 50] Apache ServiceMix Example :: Camel OSGi (4.1.0.0-fuse)
Where, in this example, the bundle number is 126. To stop this bundle, enter the following console command:
servicemix> osgi stop 126
To install and run the camel-osgi demonstration, where the demonstration
        bundle is built locally, perform the following steps:
Build the demonstration—open a command prompt and change
            directory to examples/camel-osgi. Use Maven to build the demonstration by
            entering the following command:
mvn install
If this command runs successfully, the examples/camel-osgi/target
            directory should contain the bundle file,
            camel-osgi-4.1.0.0-fuse.jar.
Install and start the camel-osgi bundle—at the FUSE ESB console, enter the following command:
servicemix> osgi install -s file:InstallDir/examples/camel-osgi/target/camel-osgi-4.1.0.0-fuse.jarWhere InstallDir is the directory where you installed
            FUSE ESB and the -s flag directs the container to start the bundle right away.
            For example, if your install directory is
              C:\Programs\FUSE\apache-servicemix-4.1.0.0-fuse on a Windows
            machine, you would enter the following command:
servicemix> osgi install -s file:C:/Programs/FUSE/apache-servicemix-4.1.0.0-fuse/examples/camel-osgi/target/camel-osgi-4.0.0-fuse-SNAPSHOT.jar
After entering this command, you should soon see output like the following being logged to the console screen:
>>>> MyTransform set body: Mon Sep 22 11:43:42 BST 2008 >>>> MyTransform set body: Mon Sep 22 11:43:44 BST 2008 >>>> MyTransform set body: Mon Sep 22 11:43:46 BST 2008
| ![[Note]](imagesdb/note.gif) | Note | 
|---|---|
| When specifying the location of a bundle to the  | 
Stop the camel-osgi bundle—to stop the
            camel-osgi bundle, you first need to discover the relevant bundle number.
            To find the bundle number, enter the following console command (this might look a bit
            confusing, because the text you are typing will intermingle with the output that is
            being logged to the screen):
servicemix> osgi list
At the end of the listing, you should see an entry like the following:
[ 126] [Active ] [ 50] Apache ServiceMix Example :: Camel OSGi (4.1.0.0-fuse)
Where, in this example, the bundle number is 126. To stop this bundle, enter the following console command:
servicemix> osgi stop 126