I have a multi tier application where a jms message is sent from a JmsTemplate (Spring) to a WMB Flow. In the jms message I could set MQMD headers in order to set meta-info required by the WMB flow listening on an MQQueue.
What I should still do and that is causing issues to me is setting a custom property/header in the JMS message, in MQRFH2 usr folder. I want to set there a key named MYKEY with a string value.
What I'm doing in the jms message is this:
message.setStringProperty(WMQConstants.JMS_IBM_MQMD_FORMAT, "MQRFH2"); message.setStringProperty("MQRFH2.usr.MYKEY", "testvalue");
but I'm getting the error:
JMSCC0049: The property name 'MQRFH2.usr.MYKEY' is not a valid Java(tm) identifier.; nested exception is com.ibm.msg.client.jms.DetailedMessageFormatException: JMSCC0049: The property name 'MQRFH2.usr.MYKEY' is not a valid Java(tm) identifier
Does anyone knows how to set the MQRFH2 usr customer property named MYKEY into a jms message in usr folder into MQRFH2 ?