Versions Compared

Key

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

...

If you wish to customize the marshalling from NMS to JMS or vice versa you can customize the JmsMarshaler used to perform the mapping.

Sending JMS messages

The JmsSenderComponent will send JMS messages from the input message exchange. This component uses Spring's JmsTemplate to perform the sending.

Receiving JMS messages

The JmsReceiverComponent subscribes to the given destination , again using Spring's JmsTemplate and dispatches the message into the JBI container. Here's an example of subscribing to a JMS destination (in this case a topic) and forwarding the JBI message onto another JBI component.

Wiki Markup
{snippet:id=receive|lang=xml|url=http://cvs.servicemix.codehaus.org/*checkout*/servicemix/base/src/test/resources/org/servicemix/components/xslt/example.xml?rev=HEAD}

If you wish to use JCA or some other mechanism to subscribe to JMS you can use the JmsInBinding.

Sending JMS messages

The JmsSenderComponent will send JMS messages from the input message exchange. This component uses Spring's JmsTemplate to perform the sending.

Example

There is an example JMS pipeline, sending messages to a topic and consuming messages from a topic here