Created 02-17-2017 10:00 PM
I am using Nifi to connect to IBM MQ. Could Nifi read, and remove a message from a IBM topic/queue?
Created 02-17-2017 10:08 PM
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/
Created 02-17-2017 10:29 PM
Thanks for the quick reply. I read the article and it confirmed that nifi can read from IBM MQ. Can nifi delete the message after read it?
Created 05-18-2018 07:53 AM
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?
Created 05-18-2018 03:01 PM
@Andy Liang
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.
Thanks
Kiran.