ServiceMix hello world

Description

Last update, 25 September 2008

This simple routing example shows the use of the EIP service engine. This example passes a message to a different JMS queue based on the content of the incoming book order message

JMS binding component configuration - xbean.xml

EIP service engine configuration - xbean.xml

JBI configuration - jbi.xml

Source and binary

Download as binary + sources here (Java 6 compiled)

Download as Eclipse project here

Download example file to test the example 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 simple routing example will be deployed automatically
  • Use HermesJMS or your own tool to put the example.xml file to the order.queue and see that it's being routed to the manning.queue
  • 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 simple routing example will be deployed automatically
  • Use HermesJMS or your own tool to put the example.xml file to the order.queue and see that it's being routed to the manning.queue