Posted: Fri Feb 01, 2008 5:28 pm Post subject: How to remove RFH2 header in the published msg before out
Acolyte
Joined: 08 Jun 2004 Posts: 64
I have a simple pub/sub message flow which publishes the message to the subscriber
queue. The simple messge flow consists of 3 nodes MQInput Node, a Compute Node and a Publication node.
The message content is delivered to the subscriber queue as follows
RFH ” " ¸ MQSTR ¸ L <psc><Command>Publish</Command><Topic>application/xml/test</Topic></psc> <mcd><Msd>xml</Msd></mcd>
<Msg><text>Hello</text></Msg>
I would like to know
Is it possible to remove the RFH2 header (that is from the "RFH to the </mcd>) using esql inside the Compute Node before the message is delivered to the subscriber's queue ?
Well there are really 2 options:
a) set the subscription destination to have "?targetClient=1" as attribute (note this is untried and might not work)
b) Use some kind of processing that will remove said header after the publish (which needs it) and before your app reads the message.
This means your subscription queue is serviced by some app that removes the RFH header and drops the message into the app queue...
But seriously if you want your app to consume publish messages make it either JMS, XMS or deal with the header!
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum