Skip to end of metadata
Go to start of metadata

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

Compare with Current View Page History

« Previous Version 3 Current »

In this pattern, a Point-to-Point Channel ensures that only one receiver will be consuming any specific message generated by a Sender. If a channel has multiple receivers connected to it, then only one of them can successfully consume a specific message.

However, if there happen to be multiple receivers that try to consume an individual message, then the channel will ensure that only one of them will be successful. With this level of guarantee, none of the receivers have to coordinate their actions with each other.

The channel can still have multiple receivers to consume multiple messages concurrently, while the channel enforces the rule that only a single receiver consumes any one message.

Point-to-Point using XML DSL:

Demonstration of point-to-point message with JMS components.

<routes>
    <route>
        <from uri="direct:begin"/>
        <to uri="jms:queue:hello"/>
    </route>
    <route>
        <from uri="jms:queue:hello"/>
        <to uri="bean:hello"/>
    </route>
</routes>
  • No labels