Confirmed Delivery
1 Minute Read
This tutorial builds on the basic concepts introduced in Persistence with Queues tutorial and will show you how to properly process publisher acknowledgements. Once an acknowledgement for a message has been received and processed, you have confirmed your persistent messages have been properly accepted by Solace messaging and therefore can be guaranteed of no message loss.
This tutorial focuses on using a non-Solace JMS API implementation. For using the Solace JMS API see Solace Getting Started JMS Tutorials.
Persistent Publishing
In JMS, when sending persistent messages, the JMS Producer will not return from the blocking send()
method until the message is fully acknowledged by the message broker.
This behavior means that applications sending persistent messages using Solace messaging are guaranteed that the messages are accepted by the router by the time the send()
call returns. No extra publisher acknowledgement handling is required or possible.
This behavior also means that persistent message producers are forced to block on sending each message. This can lead to performance bottlenecks on publish. Applications can work around this by using JMS Session based transactions and committing the transaction only after several messages are sent to the messaging system.
Summary
For JMS applications there is nothing further they must do to confirm message delivery with Solace messaging. This is handled by the Apache Qpid JMS API by making the send()
call blocking.