You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by "maxime.lezier" <ma...@pm.me> on 2021/08/06 12:40:43 UTC

[PublishJMS] - Publish MQ message with MQRHF2 format

Hello,

For a usecase i need to publish message in an IBM MQ (V9) with a MQRFH2 format.

I don't know how to configure PublishJMS processor for this.

If i use "Message Body Type" with "text" value, message are received in "MQSTR" format.
If i use "byte" the format field is empty in the received message.

I have try to change the "Destination Name" field like this :
queue:///QUEUENAME?mdMessageContext=1&mdWriteEnabled=true&mdFormat=MQRFH2

But the message is always received with no the good format.

My question is : how can i force the format to be MQRFH2 and put custom value in its header ?

I'm on nifi 1.13.2.

Could you help me please :-)

Thanks
Max L.

Re: [PublishJMS] - Publish MQ message with MQRHF2 format

Posted by Pierre Villard <pi...@gmail.com>.
Hi,

It may require a custom processor that would extend the existing one to
work with IBM MQ specific capabilities.

Thanks,
Pierre

Le mar. 10 août 2021 à 17:20, Maxime.Lézier <ma...@pm.me> a écrit :

>
> Hello,
>
> Is there someone who could help for this subject please ?
>
> Really thanks
>
> Max L.
>
>
>
> Le ven., août 6, 2021 à 14:40, maxime.lezier <ma...@pm.me> a
> écrit :
>
> Hello,
>
> For a usecase i need to publish message in an IBM MQ (V9) with a MQRFH2
> format.
>
> I don't know how to configure PublishJMS  processor for this.
>
> If i use "*Message Body Type*" with "*text*" value, message are received
> in "*MQSTR*" format.
> If i use "*byte*" the format field is empty in the received message.
>
> I have try to change the "*Destination Name*" field like this :
> *queue:///QUEUENAME?mdMessageContext=1&mdWriteEnabled=true&mdFormat=MQRFH2*
>
> But the message is always received with no the good format.
>
> My question is : how can i force the format to be MQRFH2 and put custom
> value in its header ?
>
> I'm on nifi 1.13.2.
>
> Could you help me please :-)
>
> Thanks
> Max L.
>
>
>
>
>

Re: [PublishJMS] - Publish MQ message with MQRHF2 format

Posted by "Maxime.Lézier" <ma...@pm.me>.
Hello,

Is there someone who could help for this subject please ?

Really thanks

Max L.

Le ven., août 6, 2021 à 14:40, maxime.lezier <ma...@pm.me> a écrit :

> Hello,
>
> For a usecase i need to publish message in an IBM MQ (V9) with a MQRFH2 format.
>
> I don't know how to configure PublishJMS processor for this.
>
> If i use "Message Body Type" with "text" value, message are received in "MQSTR" format.
> If i use "byte" the format field is empty in the received message.
>
> I have try to change the "Destination Name" field like this :
> queue:///QUEUENAME?mdMessageContext=1&mdWriteEnabled=true&mdFormat=MQRFH2
>
> But the message is always received with no the good format.
>
> My question is : how can i force the format to be MQRFH2 and put custom value in its header ?
>
> I'm on nifi 1.13.2.
>
> Could you help me please :-)
>
> Thanks
> Max L.