Try PubSub+
If you haven't already, check out our new Developer Portal! You'll find useful information about Solace PubSub+ as well as handy resources to get you started.

Subscriber not sending ack after DirectTransport set to False in CF

SasikumarSPSasikumarSP Member Posts: 8
edited March 18 in Integrations with Solace

Hi,
Our subscriber was connected directly to topic and receiving messages. We have seen loss of messages so disabled DirectTransport in CF to create non-durable topic-endpoint. Now, we don't see message get delivered by subscriber and all spooled in non-durable. ACK window size getting reduced and it become zero. Do we need to do any changes in code to support guaranteed message delivery after DT disabled?

Comments

  • AaronAaron Member, Moderator, Employee Posts: 50 Solace Employee

    That's interesting. When you created the Session, what ack mode did you use?

  • SasikumarSPSasikumarSP Member Posts: 8

    Hi Aaron, This issue is fixed after changing the mode to auto ack. Thank you !

  • AaronAaron Member, Moderator, Employee Posts: 50 Solace Employee

    Great! Just FYI: I'd be careful using AUTO_ACK, unless you are doing all your processing in the JMS onMessage() callback method. If you are passing that message to another thread for processing, you should really use CLIENT_ACK, and ensure the processing thread acknowledges the message when it is done with it. That's a common JMS mistake..!

Sign In or Register to comment.