on 05-06-2009 9:10 AM
Hi Friends,
I got a requirement to capture file name using JMS adapter on the sender side.
Can some one help me in resolving this issue.
Regards,
Jeevan.
You can use the DynamicConfigurationBean:
http://help.sap.com/saphelp_nw04/helpdata/en/45/da2239feb22e98e10000000a155369/frameset.htm
You can read the file name from a JMS header field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
kindly check this may help u [https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e964516
]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
You can use Dynamic Configuration in mapping.
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;
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if both your adapter types are same for the sender and receiver then just check the adapter specific properties and it should be done.
But in case to have different adapter types, then you will have to invoke the code.
if you have no mapping logic, then the best is to use a java mapping which will assign the inputstream to the outputstream (no transformation at all), and place your dynamic configuration in this java mapping.
For help on sample code etc read through - /people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.