Difference between Point-To-Point and Publish/Subscribe JMS Messaging Models

Point-to-Point (PTP) and Publish/Subscribe (Pub/Sub) are two types of messaging models or messaging domains provided by JMS. Both of these have significant differences and should be used as per the application’s requirement. For instance, point-to-point messaging should be used when each message delivered by a producer should be consumed successfully by one receiver and publish/subscribe messaging should be used when each message should be consumed by zero or more receivers. Continue reading