on 11-18-2015 2:48 PM
Hi Experts,
I am working on file to JMS scenario, they want to pass the file names to the target by placing the order number(which is coming from the source payload) in the file.
Can some one please help me to over come from this situation.
regards,
Uday.
Hi Experts,
Please help me here to overcome from above issue.
Regards,
Uday.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Uday,
you can set the dynamic configuration variable to pass the value in JMS header property. Please refer the below blog
Unknown use case of DynamicConfigurationBean: Store file name to JMS header without mapping
one more option is RFH2 header
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Uday,
You can build the UDF to pass the required file name. Please refer the discussion thread which contains the UDF
link - How to pass dynamic filename to Receiver JMS ch... | SCN
//UDF code
String filename="";
String NameSpace = "http:/"+"/sap.com/xi/XI/System/JMS";
try{
DynamicConfiguration conf = (DynamicConfiguration) param.get(
StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "FileName");
// read filename value
filename = conf.get(key);
// So far we extracted filename value .. now do your logic something like this...
DynamicConfigurationKey key2 = DynamicConfigurationKey.create(NameSpace,"yourjmsvalue goes here");
conf.put(key2,filename);
} catch(Exception e){
}
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
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.