The PTP messaging model sends and receives messages using the Point-to-Point method.
With the PTP messaging model, the sending client (producer) that creates and sends messages is called the sender. Also, the client that receives the messages (consumer) is called the receiver.
The messages sent from the sender are registered in a destination called the queue. When the receiver receives a message stored in the queue, the message is deleted from the queue.
The following figure shows the flow of messages in the PTP messaging model.
Figure 7-5 Flow of messages in the PTP messaging model
The messages are sent from the sender and registered in a queue. The messages registered in the queue are delivered to one of the receivers running at that time (message1 and message2). The messages delivered to the receiver are deleted from the queue. If the delivery destination receiver does not exist, the messages accumulate in the queue (message3).
Note that you can use the queue browser provided in the JMS specifications to check the status of the queue in which the messages are registered. For details on the queue browser, see the JMS specifications.
The features of the PTP messaging model are as follows: