[resolved] tJMSInput: can you set client_acknowledge to AUTO_ACKNOWLEDGE

[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

Accepted Solutions

Re: [resolved] tJMSInput: can you set client_acknowledge to AUTO_ACKNOWLEDGE

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.

All Replies
Community Manager

Re: [resolved] tJMSInput: can you set client_acknowledge to AUTO_ACKNOWLEDGE

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
----------------------------------------------------------
Talend | Data Agility for Modern Business

Re: [resolved] tJMSInput: can you set client_acknowledge to AUTO_ACKNOWLEDGE

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.