on 03-11-2011 11:52 AM
Hello All,
Can some one tell me the how can I get messageID in message mapping using Dynamic Config class
Thanks,
Regards,
Moorthy
Hi,
String MessageID;
java.util.Map param = container.getTransformationParameters();
MessageID = (String) param.get (StreamTransformationConstants.MESSAGE_ID);
return MessageID;
regards,
Carme
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
GlobalContainer globalContainer = container.getGlobalContainer();
String headerField;
Map map = globalContainer.getParameters();
headerField = (String)map.get(StreamTransformationConstants.MESSAGE_ID);
return headerField;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.