You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

The JMS components allow you to send and receive JMS messages. The JMS components assume that the NormalizedMessage they are given are ready for marshalling into/out of JMS, so they don't try to implement a SOAP stack or perform any complex message transformation other than to map NMS to JMS or vice versa.

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

Receiving JMS messages

The JmsReceiverComponent subscribes to the given destination 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.

Error formatting macro: snippet: java.lang.NullPointerException

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

  • No labels