Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What Will Happen to Messages That Have Been Consumed but not Acknowledged?

0
Posted

What Will Happen to Messages That Have Been Consumed but not Acknowledged?

0

There will be no way to send the acknowledgment in a new connection, the acknowledgment is per session, and once your connection has become inactive there is no way to attach the session to the new connection. All attempts to work with the old Session will end in exceptions. You must create a new session and the subscribers. In case you are using ordinary topics, the messages will be lost since the topics were just created, however if you are using durable subscribers or queues the PERSISTENT messages that were delivered to the old session but not yet acknowledged will be delivered to the new one. They will have the flag JMSRedelivered. You must code your application to handle duplicates based on that flag.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123