on 09-23-2005 4:23 PM
Hi,
I'm developing own module for XI File Adapter.
I found in the weblogs how to get source file name. Thanks.
But how do I get custom parameter specified for the module?
Where could I check all readable parameters, apart from source file name? For instance source dir?
Thanks.
Hi
The parameter "moduleContext" in the process (moduleContext,inputModuleData) method has a method getContextData(String name)....
This can be used to read the module configuration parameters.
For the filename, i believe you are doing the following:-
using the getSupplementalData(String param) of inputModuleData with the value for param being 'module.parameters' to get a hashtable and out of the hash table you are reading an entry for "FileName"
So let me suggest you a wild try...Did you try checking for "SourceDirectory" in the hashtable?
You could also get all the keys/values in this hashtable and put it somewhere in the xml and see what all parameters are there in message monitoring(This is just a suggestion for a simple debugging...).
Thanks & Regards,
Renjith
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.