A Sample JMS Pub/Sub Application

In this section, we'll get a better feel for the details involved in writing a messaging application. Instead of discussing how to do this under the different models (PTP or pub/sub) and reliability configurations (persistent delivery, nonpersistent delivery, durable subscriptions, and nondurable subscriptions), we will stick to our Red Planet example, which involves distributing price updates to resellers. This means that we'll commit to specific set of JMS deployment options. Coding under an alternative messaging model with alternative reliability configurations is very similar to what will be presented here.

In thinking about our specific Red Planet example, a few immediate observations and corresponding decisions ...

Get Building Scalable and High-Performance Java™ Web Applications Using J2EE™ Technology now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.