O'Reilly - Java Message Service
O'Reilly - Java Message Service
O'Reilly - Java Message Service
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>Java</strong> <strong>Message</strong> <strong>Service</strong><br />
recognition of this, JMS provides guaranteed delivery, which ensures that intended<br />
consumers will eventually receive a message even if partial failure occurs.<br />
Guaranteed delivery uses a store-and-forward mechanism, which means that the<br />
underlying message server will write the incoming messages out to a persistent store if the<br />
intended consumers are not currently available. When the receiving applications become<br />
available at a later time, the store-and-forward mechanism will deliver all of the messages<br />
that the consumers missed while unavailable (see Figure 1.10).<br />
Figure 1.10. Underlying store-and-forward mechanism guarantees delivery of messages<br />
To summarize, JMS is not just another event service. It was designed to cover a broad<br />
range of enterprise applications, including EAI, B2B, push models, etc. Through<br />
asynchronous processing, store-and-forward, and guaranteed delivery, it provides high<br />
availability capabilities to keep business applications in continuous operation with<br />
uninterrupted service. It offers flexibility of integration by providing publish-and-subscribe<br />
and point-to-point functionality. Through location transparency and administrative control,<br />
it allows for a robust, service-based architecture. And most importantly, it is extremely<br />
easy to learn and use. In the next chapter we will take a look at how simple it is by<br />
building our first JMS application.<br />
18