on 09-19-2008 3:43 AM
Hi Experts,
How to extract the message ID from the Message monitoring and send it to the receiver side, as my scenario is file to file in the receiver file i need to send message id to one field in the receiver, how can i fulfill my requirement
regards,
rakesh
Hi
use udf.
getMessageId
public void getMessageId(ResultList result,Container container){
String headerField;
java.util.Map map;
// get runtime constant map
map = container.getTransformationParameters();
// get value of header field by using variable key
headerField = (String)map.get(StreamTransformationConstants.MESSAGE_ID);
result.addValue(headerField);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
try with this simple udf
public String GetMessageId(Container container)
{
//write your code here
String conf = (String) container.getTransformationParameters().getStreamTransformationConstants.RECEIVER_NAME);
return conf;
}
GetMessageId--->target
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.