Versions Compared

Key

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

...

The example has several components. One component sets off a timer to send messages to a source destination. Then those messages are consumed by another component and sent to a different output destination - along with a trace component displaying the output messages as they arrive. This demonstrates a simple JMS bridge in action along with timers and tracing.

The diagram illustrates the components of the Basic example and how they interact with each other within the JBI container.

A DIAGRAM WILL BE PUT HERE--still creating

The following table explains the basic function of each component and bean in the servicemix.xml file.

Component or Bean ID

Description

timer

Every 5 seconds, until the program is terminated, the timer component kicks off a trigger. The job has a property called "name" with a value of "My Example Job" and another property called "group" with a value of "ServiceMix." The trigger is converted to a normalized message and routed through the Normalized Message Router (NMR).

inputSender

Receives the normalized message (the trigger), converts it to a JMS message, and publishes it to the topic called demo.org.servicemix.source. It uses the jmsFactory