简体   繁体   中英

How to remove RFH2 header for a JMS Point to Point Sampler in Jmeter

We are trying to send a message to IBM MQ using JMS Point to Point Sampler in JMeter. After sending the message we can see that in the response queue an extra RFH header is getting added like this -

WRN Encountered invalid data from source 'HttpXmlObjectConverter' in data: RFH ▒▒MQSTR   ▒ <mcd><Msd>jms_text</Msd></mcd>  `<jms><Dst>queue:///quenename</Dst><Tms>1607427843324</Tms><Dlv>2</Dlv></jms>"

After searching on Google I found out that targetClient should be changed to 1 or MQ .

Any idea where we need to modify this? In JMeter or in Queue? If it is in JMeter then how to do that? I tried doing it in JMS and JNDI properties, but I'm still getting the same error.

Alternatively, you can configure the queue not to supply the RFH2 headers to getters who don't know how to handle them by using this command:

ALTER QLOCAL('quenename16074278433242') PROPCTL(NONE)

You can either use targetClient property in the queue name:

queue:///quenename16074278433242?targetClient=1

Or you use TARGCLIENT property in the JNDI configuration for JMSAdmin tool:

def q(yourJndiName) qu(quenename16074278433242) qmgr(yourQmgrName) targclient(MQ)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM