Versions Compared

Key

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

...

Code Block
where {{servicemix_install_dir}} is the directory in which Service Mix was installed.
\\
\\
h2. Stopping the _Basic_ Example
To terminate the Basic example type "CTRL-C" in the command shell in which it is running.
\\
\\

h2. How it Works
The diagram illustrates the flow of messages through the _Basic_ components.
\\
\\

{panel:title= Basic Example Message Flow Diagram|borderStyle=solid|borderColor=#ccc}
!basicflow.jpg|align=center!
{panel}

\\
\\

Messages flow through the components as follows:
# The _timer_ component sends a Normalized Message (NM) to _inputSender_ through the Normalized Message Router (NMR).
# _inputSender_ converts the message (marshals it) into a JMS message, then uses the _jmsTemplate_ bean
to publish the message. 
# _jmsTemplate_ uses the _jmsFactory_ bean to get a connection factory to the port associated with the JMS topic called "demo.org.servicemix.source." The message is published on the "demo.org.servicemix.source" topic.
# _jencks_ listens on port 61616 for messages.
# _inputReceiver_ subscribes to the "demo.org.servicemix.source" topic via the _jencks_ bean and receives the JMS message.
# _inputReceiver_ normalizes the JMS message and sends it to _outputSender_ via the NMR.
# _outputSender_ marshals the NM to a JMS message and publishes it on the "demo.org.servicemix.result" topic using _jmsTemplate_. In turn _jmsTemplate_ uses _jmsFactory_ to get a connection factory to the result topic.
# _jencks_ listens on port 61616 for messages.
# _jmsTrace_, via _jencks_, subscribes to the "demo.org.servicemix.result" topic and receives the JMS message.
# _jmsTrace_ converts the JMS message into a normalized message and sends it to _trace_ via the NMR.
# _trace_ logs the message to athe log file. ??????console.
\\

Typical output looks like the following. 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.
\\

...