I am using Nifi to connect to IBM MQ. Could Nifi read, and remove a message from a IBM topic/queue?
Per @Andrew Grande answer, use ConsumeJMS/PublishJMS instead of legacy PutJMS/GetJMS pair of processors. See https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.jms.processors.ConsumeJMS/
Hi Andy, I am having the same questions as you. I don't see a reply below at the end of the thread. Were you able to figure out if NIFI remove message from IBM queue?
JMS specification states that acknowledgment mode property determines when the message on JMS server is deleted.
The default is Client ACK mode which deletes the message on the server after NiFi session is committed. Auto ack mode removes the message on the server as soon as its delivered to NiFi, but there can be messages loss if NiFi restarts before NiFi session is committed. The last is DUPS_OK which is similar to CLIENT_ACK, but lazily acks the message, can result in Duplicate message to be delivered to NiFi.
In all these cases the message will be deleted from JMS Queue/Topic.
If you found this answer has addressed your question, please take a moment to log in and click the "accept" link on the answer.