File

 
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


DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
//conf.removeAll();
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","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.


JMS

JDBC

MAIL