Overview

The message service allows you to send or publish messages to a queue or topic, where they are stored until they can be delivered to either a client or a component. The message service supports two messaging models, point-to-point and publish/subscribe. Use point-to-point messaging to send a message to one consumer. Use the publish/subscribe model to publish messages that are available to all consumers who subscribe to the message topic. The message service provides transient and persistent message storage for message consumers.

A messaging service provides a highly flexible solution for many business needs. As a practical example, consider a business-to-business (B2B) scenario in which a supplier needs to communicate prices to a number of retailers, and the retailers may want to place orders for items at updated prices.

You would create a listener to respond to all incoming orders, and you would manage the list of retailers, as well as add new ones. You would ensure that each party received and processed all the transactions that are sent its way. If one of the retailers is offline, or network routing to its server fails, your application design must continue trying to establish communications until the transaction can be successfully sent. You would provide persistence for critical transactions until all recipients acknowledge them. You would also want to ensure that all parties are granted access and are who they say they are, and that transactions are secure during transmission.

Many B2B transactions take place in an environment such as this, where connectivity cannot be guaranteed and transactions require security. Inserting a messaging service between business nodes in a B2B network insulates your application code from these issues.

The key features of the EAServer message service include: