ibm-mqmqrfh2

Need to remove rfh header before sending message to mq


I'm using JndiDestinationResolver (JNDI-lookup) to resolve destination which i have added on application server.I saw solutions to remove rfh from message is by appending--> queue + "?targetClient=1". I'm passing jndi-name to send(Destination,meassage) and need help to understand how i can set this variable (context file or on app server). One solution mention- On the administered object there is a property called TARGCLIENT which should be set to 'MQ'.How and where exactly we need to set this on WAS. I really appreciate any help on this. Thanks!


Solution

  • It is no longer necessary to change the message producer to do this now, there are other options.

    So long as your queue manager is at MQ V7.0 or above, you can alter the queue definition on the queue manager as follows, and the RFH2 header will be removed before the message is given to the consumer.

    ALTER QLOCAL(q-name) PROPCTL(NONE)