...
Component or Bean ID | Description |
---|---|
jbi | The jbi container contains the following components: timer, inputSender, inputReceiver, outputSender, jmsTrace, and trace. First the servicemix.xml file initializes the jbi container by setting several properties. Then the components are defined. |
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. |
inputReceiver | This component uses the bean called jencks , which is a JCA container, to listen on port 61616 for a JMS message on the topic called "demo.org.servicemix.source." Essentially, inputReceiver subscribes to the demo.org.servicemix.source topic. It takes the message, normalizes it, and routes it to outputSender via the NMR. This component combined with outputSender and some supporting beans creates a JMS bridge between two topics. |
outputSender | This component receives a normalized message from the NMR, marshals it into a JMS message using jmsTemplate, then publishes it on the ActiveMQ (JMS) topic called "demo.org.servicemix.result." |
jmsTrace | This component uses the jencks bean to subscribe to the "demo.org.servicemix.result" topic and get the message that is there. It then marshals the message into a Normalized Message and routes it via the NMR to the trace component. |
jmsTrace |
|
trace |
|
|
|
|
|
jencks | The jencks bean defines a JCA container. This bean has two properties, one of which is an ActiveMQ listener, which listens on port 61616. |
broker | The broker bean ... |
transactionManager | This bean is invoked in the jbi containers initialization. It instantiates the |
jmsFactory | This bean listens on port 61616. |
When running the Basic example, the typical output looks like the following. Note, that the triggers property values of "name", "My Example Job", "group", and "ServiceMix" are displayed along with a timestamp.
PUT PIC of OUTPUT HERE.
Interesting Details
Perhaps I should have a section that might describe in more detail some important but subtle
aspect of the XML code. Will need input from developers. This section may not be applicable to
all examples.
...