...
toptop Anchor
Basic Example
Overview
This document describes how to run the Basic example and provides details about what it does. For information on the business use case, please refer to: Use Case for Basic.
The Basic example illustrates the following:
- use of declarative programming
- how to use an ActiveMQ message broker
- how to use a Quartz timer
- how to use the Jencks JCA container
- how to use the Geronimo Transaction Manager via the Jencks factory bean
- how to use tracing
...
From a command shell, go to the Basic example directory:
...
Then type:
...
...
This example starts an ActiveMQ JMS Broker, so be sure to stop any ServiceMix server already running.
...
Stopping the Basic Example
To terminate the Basic example type "CTRL-C" in the command shell in which it is running.
...
The diagram below illustrates the flow of messages through the Basic components.
...
...
...
Messages flow through the components as follows:
...
Every 5 seconds logging information is written to the console, followed by information from the trace component. Note, that the triggers' property values of "name", "My Example Job", "group", and "ServiceMix" are displayed along with a timestamp. Typical output looks like the following:
...
Details
The following table provides more details about the function of each component and bean in the servicemix.xml file.
...
The following diagram illustrates this:
...
...
...
- External means the application is outside of the ESB.
- Resource Adapter: a resource adapter provides connectivity between a specific external application and the ESB. In the Basic example the jencks container provides a JMS resource adapateradapter.
- Binding Component (BC): a BC provides connectivity to applications that are external to the ESB.
- Service Engine (SE): a service engine provides business logic and transformation services to other components within the enterprise service bus.
...
For a brief explanation of the XML tags in the servicemix.xml
file, please see:
...
...