Publish to a topic with durable subcribers
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ashima_Munjal
Posted On:   Thursday, July 3, 2003 10:08 AM

How does a client know for sure that the message it sent has been received by the JMS provider and will be published? In case there is a crash, is there a way to confirm whether the provider got the message or not?

Re: Publish to a topic with durable subcribers

Posted By:   Nick_Maiorano  
Posted On:   Thursday, July 3, 2003 07:12 PM

Ashima,



If you are using JMS queues, the message will be kept in the queue until a consumer connects to the queue, receives the message, and acknowledges reception. All this can be done in a transaction so this virtually guarantees the message will reach the consumer.



As far as crashes, this is app server specific. Most app servers offer a way to make the queues persistent. This means that even if the server crashes, the messages are stored inside a database and will be recoverable when the server restarts.



Topics, on the other hand, publish messages whether or not consumers are connected. So there is no way to guarantee that the messages actually got consumed.

About | Sitemap | Contact