on 03-16-2010 9:43 PM
Hello Experts,
I have a flat file coming into PI via JMS adapter (MQ) and going out on a File adapter (NFS). We would like to keep the file name consistence throughout the transaction. While coming from MQ our sender is sending the filename in one of the MQ Headers (JMSCorrelationID). We are trying to figure out how to read the file name from the MQ header and send it to the file adapter. Please let us know any other suggestions.
Thanks,
Mayur
Use this UDF code in MessageMapping.
try
{
DynamicConfiguration conf = (DynamicConfiguration)
container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey KEY_JMSCorrID = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/JMS","DCJMSCorrelationID");
DynamicConfigurationKey KEY_FILENAME = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
conf.put(KEY_FILENAME, conf.get(KEY_JMSCorrID));
}
catch(Exception e){}
return a; //a is some input field.
Enable ASMA on receiver File channel.
Edited by: Praveen Gujjeti on Mar 17, 2010 9:23 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Praveen,
Thanks for a quick response. Unfortunately, we don't have a message mapping since it is a flat file and we are delivering it as it is without any mappings. It is pretty much like a batch transfer. We are also using Integrated Scenarios for this. Is there any other way to do this without using ESR objects?
Thanks,
Mayur
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.