Versions Compared

Key

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

When one application needs to communicate with another application using messages, then it employs the use of a Message Channel. After connecting to the Message Channel, the application will write information to the channel and the other application will read it from the channel.

The Message Channel will be an internal implementation of an Endpoint interface.

Image Added

 

The data being transmitted will be encapsulated in a Message, but it is the role of the Message Channel to decouple the message producers (Sender) from the message consumers (Receiver).

Message Channel using XML DSL:

Code Block
languagexml
<route>
  <from uri="file:input"/>
  <to uri="jms:queue:out"/>
</route>