Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] tJMSInput: can you set client_acknowledge to AUTO_ACKNOWLEDGE

Can you use the advanced settings of tJMSInput to set the client_acknowledge mode? How do you do it?
Thanks
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Thanks, if anyone else has the same question the workaround is capture the message and explicitly call message.acknowledge() in your error catcher - so it gets called if you error, and called if you don't. I haven't tried to see what would happen by immediately calling acknowledge, and not worrying about it getting double acknowledged.

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Hi
If you look into the generated code of tJMSInput, you will see it uses client_acknowledge mode by default when creating a jms connection, it is impossible to change the acknowledge mode right now.
javax.jms.Connection connection_tJMSInput_1 = factory_tJMSInput_1
.createConnection();
javax.jms.Session session_tJMSInput_1 = connection_tJMSInput_1
.createSession(false,
javax.jms.Session.CLIENT_ACKNOWLEDGE);

Maybe we should provide a list of the acknowledge modes for selected by users, please report a new feature in our bugtracker.
Shong
Anonymous
Not applicable
Author

Thanks, if anyone else has the same question the workaround is capture the message and explicitly call message.acknowledge() in your error catcher - so it gets called if you error, and called if you don't. I haven't tried to see what would happen by immediately calling acknowledge, and not worrying about it getting double acknowledged.