ServiceMix hello world

Description

Last update, 25 August 2008

This hello world example shows the use of the file binding component. This example does nothing more than moving a file to another directory

File binding component configuration - xbean.xml

JBI configuration - jbi.xml

Source and binary

Download as binary + sources here (Java 6 compiled)

Download as Eclipse project here

Get the example running

To get this example to run first download the binary and copy this file to the hotdeploy directory in your ServiceMix distribution. Then execute the following steps:

Windows

  • Open a command prompt and go to your ServiceMix distribution directory
  • Start the ServiceMix container with: bin\servicemix.bat
  • When ServiceMix has started the helloworld example will be deploy automatically
  • Copy a file with XML content to the helloworld/in directory, which is created in the ServiceMix distribition directory
  • Unix/Linux

  • Open a command prompt and go to your ServiceMix distribution directory
  • Start the ServiceMix container with: bin\servicemix.sh
  • When ServiceMix has started the helloworld example will be deploy automatically
  • Copy a file with XML content to the helloworld/in directory, which is created in the ServiceMix distribition directory