KB Article #69795

Not able to retrieve JMSattribute in Map stage

Problem

-- JMS Attributes availble with JMS Receive are lost after first map stage. They are empty in second map stage
-- 'Copy all attributes' check box has no effect, attributes are lost


Resolution

-- When we receive any JMS message, Attributes exposed via JMSReceiveInfo are available in first map-stage.
-- In order to make it accessible, one is required to inherit the JMSReceiveInfo attribute from the message like this:
setAttribute("JMSReceiveInfo", getAttribute("JMSReceiveInfo");