Versions Compared

Key

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

...

This document describes how the Basic example is used and provides details about what it does.
The source code for the Basic example is stored in the Service Mix installation directory under the examples\basic directory in the servicemix.xml file.

Note
It is helpful to look at the source code while reading this description\ The Basic example illustrates the following concepts:* 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 a JOTM transaction manager* how to using tracing 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. \ \h3. Running the _Basic_ ExampleTo run Basic:From a command shell, go to the Basic example directory:{code
It is helpful to look at the source code while reading this description\ The Basic example illustrates the following concepts:

...

* 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 a JOTM transaction manager

...

* how to using tracing

...

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. \ \h3.

...

Running the _Basic

...

_ ExampleTo run Basic:

...

From a command shell, go to the Basic example directory:

...

{code

cd

...

servicemix_install_dir

...

\examples\basic

Code Block
To run it:

...

code


[

servicemix_install_dir

...

\bin\servicemix

...

servicemix.xml

Code Block

where servicemix_install_dir is the location in which Service Mix was installed.

...