Author |
Message
|
Vargheese thomas |
Posted: Mon Jan 19, 2004 4:50 am Post subject: Remove RFH2 Header from published message |
|
|
Novice
Joined: 16 May 2003 Posts: 13
|
Hi All
Urgent Help needed....
Iam using publication node in my flow to publish the message.
After the message is published, when i try to read the message from the output queue iam getting the RFH2 header along with the actual message.
Is there a way to remove the RFH2 header from the message before/while publishing.
Iam using WMQI 2.1 with csd-4. _________________ Thanks and regards
Vargheese Thomas |
|
Back to top |
|
 |
wooda |
Posted: Mon Jan 19, 2004 5:30 am Post subject: |
|
|
 Master
Joined: 21 Nov 2003 Posts: 265 Location: UK
|
I think you need to remove the RFH2 header from the logical message tree before publishing.
You can do this by detaching the OutputRoot.MQRFH2 subtree using ESQL in a compute node. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Jan 19, 2004 5:56 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
This is addressed in the Pub/Sub section of the Programming Guide. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
dilse |
Posted: Fri Apr 27, 2007 3:16 pm Post subject: |
|
|
 Master
Joined: 24 Jun 2004 Posts: 270
|
Jeff & Wooda,
I am having the same issue with my end message. It contains the RFH2 header. It is becoming difficult to read the data with the RFH2 header in it. One thing what I am wondering about Wooda's suggestion is how can it publishes if you remove the RFH2 header before publishing it.
Quote: |
You can do this by detaching the OutputRoot.MQRFH2 subtree using ESQL in a compute node. |
Can you explain this?
I tried to find it in the Programming guide but I do not think MQ alone deals with RFH2 header but it deals with RFH header. Correct me if I am wrong.
Thanks,
DilSe.. |
|
Back to top |
|
 |
Vitor |
Posted: Sat Apr 28, 2007 6:39 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
dilse wrote: |
I tried to find it in the Programming guide but I do not think MQ alone deals with RFH2 header but it deals with RFH header. Correct me if I am wrong.
|
The RFH2 is just the version 2 of the RFH. It's handled the same way, the only difference is structure and a few fields.
The suggestion of removing the header in ESQL will still work, though you do need the <psc> folder in a pub/sub environment. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
dilse |
Posted: Sat Apr 28, 2007 1:22 pm Post subject: |
|
|
 Master
Joined: 24 Jun 2004 Posts: 270
|
Thanks Vitor.
I am using the RFH2 header for publishing to a particular topic. Is there anyway that I can remove the header before it reaches the Subscribe Queue. If you remove the RFH2 before publishing how can one message flow will be able to publish without the psc in RFH2 header. Please shed some light.
Thanks,
DilSe... |
|
Back to top |
|
 |
jefflowrey |
Posted: Sat Apr 28, 2007 3:46 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Please search for previous discussion. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
vk |
Posted: Mon Apr 30, 2007 7:35 pm Post subject: |
|
|
Partisan
Joined: 20 Sep 2005 Posts: 302 Location: Houston
|
If you dont want a RFH header in the message that is published to the subscribers then set the topic name in the properties tree -
SET OutputRoot.Properties.Topic = 'XYZ';
You can also specify the topic name in the MQInput node properties, if it is static. Dynamic topic names can be set in a compute node in the properties tree as shown above.
If the topic is set in the psc folder of MQRFH2 header, then the published message will also have an RFH header.
Regards,
VK. |
|
Back to top |
|
 |
|