December 2017
Intermediate to advanced
372 pages
8h 46m
English
The disadvantage of using the pub/sub messaging domain is that message consumers must be executing when the messages are sent to the topic. If a message consumer is not executing at the time, it will not receive the messages, whereas, in PTP, messages are kept in the queue until the message consumer executes. Fortunately, the JMS API provides a way to use the pub/sub messaging domain and keep messages in the topic until all subscribed message consumers execute and receive the message. This can be accomplished by creating durable subscribers to a JMS Topic.
In order to be able to service durable subscribers, we need to set the ClientId property of our JMS connection factory. Each durable subscriber must have a ...