Hiren Patel
Hiren Patel

Reputation: 1

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.

Upvotes: 0

Views: 643

Answers (2)

Morag Hughson
Morag Hughson

Reputation: 7527

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)

Upvotes: 2

Daniel Steinmann
Daniel Steinmann

Reputation: 2199

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)

Upvotes: 1

Related Questions