In this the first of two chapters looking at the different messaging models, we will look at the Point-to-Point (PTP) messaging domain. This model is based on message queues, whereby a message producer sends messages to a specific queue, and the message consumer receives the messages from that same queue. However, an individual message can only be received by one receiver. If multiple receivers are listening to messages on the queue, the messaging server determines which one will receive the next message based on the routing information available in the message header. If no receivers are listening to the queue, the messages remain in the queue until a receiver attaches to the queue.
In this chapter we will:
Discuss message queues
See how to set up our software environment to start coding PTP applications
Look at transactions and their relation to JMS with code samples
Develop an online banking application, which provides ample opportunities for us to explore PTP messaging and transactions; this application will provide a tutorial on many of the features of PTP messaging