The JMS point-to-point model enables you to work with queues of messages.
This model allows you to send messages to a queue. The message producer here is called the sender. The messages remain in the queue until they are consumed by a consumer, which is called the receiver. At that time these messages are deleted from the queue.The JMS guarantees only that each message will be delivered to exactly one receiver; it does not specify if and how multiple receivers for a single queue should be handled.
The behavior of the SAP JMS Provider for multiple receivers on a queue is configurable. There are two possible configurations: exclusive (multiple receivers are not allowed. An attempt to register a second receiver results in an exception) and round-robin (multiple receivers are allowed and served in a round-robin fashion). The round-robin policy feature can be used for load balancing your applications, for example; multiple instances of your receiver program can connect themselves to a queue and receive incoming messages in a round-robin fashion. However, applications that rely on this behavior are not necessarily portable across different JMS Providers.
A special type of a queue receiver is the queue browser. It retrieves messages from a queue without deleting them. This enables programs like monitoring tools to inspect the contents of a queue without actually consuming its messages.
Use the point-to-point model for:
● Creating a Message Producer and Consumer to a Queue
● The JMS provider manages also the dead message delivery. For more information, see Message Delivery Attempts Limitation.