on 07-12-2007 8:36 AM
Hi guys,
I'm trying to dynamically assign a destination directory name by using the code..
DynamicConfiguration conf = (DynamicConfiguration) container
.getTransformationParameters()
.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create(
http:/"+"/sap.com/xi/XI/System/File,
Directory);
String valueNew = "MyDirectory";
conf.put(key, valueNew);
I'm getting a null pointer exception when i test this. When i tried to debug i found that my DynamicConfiguration object conf is null...
Can anyone tell me why is this happening???
Hi,
1. did you use the code from this blog:
/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
2. you do have SP14 for XI 3.0 right ?
Regards,
michal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have u imported this
Imports: com.sap.aii.mapping.api.DynamicConfigurationKey;com.sap.aii.mapping.api.DynamicConfiguration;
Also just a try. Remove all spaces, if any, from ur code.
e.g. "(DynamicConfiguration) container"
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.