Collecting JMS header elements and send them in response
Hi, i have a requiement to capture the MQMD parameters namely ReplyToQueue and ReplyToQueueManager from an incoming message and add the same parameters in the response. I am trying to find out how we can achieve this. In the service JMS rule i can see we can capture who parameters
JMSDestination — The Queue name or Topic name from which this message originated.
JMSReplyTo — Topic or Queue name to reply to, or the literal NULL
I am not sure if these parameter will capture the Queue manager details as well. Also while responding back i am unable to find these parameters in the Request tab of the Connect -JMS rules.
In a Pega JMS Service you have access to any JMS property:
Use the fields in this section to map data for any JMS properties defined by the application sending the request.
PRPC provides four application-specific JMS properties that contain information for response messages. (See More about JMS Listeners for details on these properties.) Do not map the values of those properties — they are managed by the listener and are included only when necessary.
Select the data type of the message property, one of the Java primitive data types String, Boolean, Byte, Integer, Short, Long, Float, or Double.
Enter a short description of the message property.
Specify the source or the type of source of the value in PRPC. See the options described above for the Message Header section.
Map From Key
Specify the key to locating the property or rule in the source specified in the Map From field. See the options listed above for the Message Header section.
Thanks for your response. I now know how to extract the JMS fields from the message header. I am using a connect -jms to send the response back to the origin. How I will be able to map the fields captured from the incoming message. In Connect-JMS rule only JMSCorrelationID and JMSTYpe fields are present. I need to map the JMSReply to field in the response. How can this be achieved? Is any custom java requried to write the properties into the response message header.