Skip to Content
avatar image
Former Member

Message ID req in MM

Hello All,

Can some one tell me the how can I get messageID in message mapping using Dynamic Config class

Thanks,

Regards,

Moorthy

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Mar 11, 2011 at 12:02 PM

    Hi,

    String MessageID;

    java.util.Map param = container.getTransformationParameters();

    MessageID = (String) param.get (StreamTransformationConstants.MESSAGE_ID);

    return MessageID;

    regards,

    Carme

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 11, 2011 at 12:01 PM

    GlobalContainer globalContainer = container.getGlobalContainer();

    String headerField;

    Map map = globalContainer.getParameters();

    headerField = (String)map.get(StreamTransformationConstants.MESSAGE_ID);

    return headerField;

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 11, 2011 at 01:08 PM

    Hi Moorthy,

    You need to write the code mentioned above in a UDF with out any input paramater.

    Then pass the output of that UDF to the filed of output payload. This will give you message id.

    Add comment
    10|10000 characters needed characters exceeded