Skip to end of metadata
Go to start of metadata

Author:* *

Submitted: 05/01/2009
Related Links:


Use Adapter Specific Message Attributes for the target Communication Channel(CC).Check the indicator for filename in the advanced tab of CC

Create a UDF with input as file name and copy/paste this code

/* Using Dynamic Configuration */
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("","FileName");
//String filename= conf.get(key);
conf.put(key, fileName);
key= null;

return fileName;

In the above example the UDF has value as cache.The output of this UDF is assigned to the root of the xml document.