cancel
Showing results for 
Search instead for 
Did you mean: 

Additional JMS Message Properties

Former Member
0 Kudos

Hi Guru's,

I am looking for a solution to dynamicly set the filename for JMS receiver adapter. What I have found so far is that this should be done with the Additional JMS Message Properties...

Based on a field from the source structure I want to determine the filename which will be send via the JMS adapter. Is there any documentation available on how to achieve this?

Best regards,

Guido Koopmann

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I have written an UDF to determine the filename dynamicly:

//write your code here

String str = "SAPDATA-" + a + "ES" + ".xml";

DynamicConfiguration conf = (DynamicConfiguration)

container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey FileName = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File","FileName");

conf.put(FileName, str);

return "";