Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How can I change message format from MQHRF2 to MQSTR in PublishJMS?

avatar

I was using Flume to send messages from HDFS to IBM MQ Queue. But now we are trying Nifi to do so. Everything is working fine except the message format is different. The message format I am getting on the Queue end is in MQHRF2. I need to change it to MQSRT format. Is there a way to do that in PublishJMS or should I use some other processor in Nifi before PublishJMS to make it happen?

PublishJMS is sending the XML headers with message attributes and at the end "the-message". I only need message to be sent to the queue not the headers. I think this is somewhat related to the message formats mentioned above or am I wrong?

1 ACCEPTED SOLUTION

avatar

Changing the Destination Name in Nifi PublishJMS to snippet below worked for me

queue:///theQueueName?targetClient=1

View solution in original post

1 REPLY 1

avatar

Changing the Destination Name in Nifi PublishJMS to snippet below worked for me

queue:///theQueueName?targetClient=1