on 01-28-2009 7:25 AM
Hi Experts,
I am using multi mapping. i.e., with in a single message mapping i am manipulating 3 files. At receiver, we have to generate the target file name dynamically.
The problem is,
I have used this dynamic configuration for all the three messages. But all the three files are getting generated with the same name i.e., the dynamic configuration used at last.
How to solve this problem? Can any one help me please...
Thanks in advance.
-Naresh
Thank you very Varun....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The SEEBURGER SFTP Adapter supports setting the filename using dynamic attributes (aka adapter specific properties). You can set these properties either in your mapping or in the module chain (e.g AttribMapper of SEEBURGER).
Use the dynamic attribute dtSubject in namespace http://seeburger.com/xi/SFTP
Hi Naresh,
Dynamic Configuration will not work when you are using multi-mapping. The only thing you can do to create file name dynamically is to use VariableSubstitution. But this is also not possible in your case as you are not using a file adapter. So the better option is to go with 3-different mappings instead of multimapping.
This will solve your problem.
Regards,
Ramkiran.K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dynamic configuration is applicable to the entire message. Hence you're facing this problem.
The only way to overcome this is to have one additional xmlnode in the three data types and use vaiable substitution in your file channel to get the filename.
Regards
Varun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Naresh,
aeh, you wrote:
>am using multi mapping.
For what do you have 3 outbound interfaces?
>I have used this dynamic configuration for all the three messages. But all the three files are getting generated with the same name i.e., the dynamic configuration used at last.
If you use already 3 channels, why dont you put there 3 different static parts of the filename?
Regards,
Udo
Hi Naresh,
why do you call the thread "multi mapping"?
>one of the fields from the input structure is the part of the target file name. so i cant give it as static
This is called dynamic..
I dont know, what your problem is. If you have 3 adapters, why do you have a problem with same filenames?
Regards,
Udo
Varun,
Three source messsages and three target messages.
The first node value of the source message1 will be the second node value of all the three target messages.
So, in one message mapping itself i used all the three messages.
Now you got it?
The same node value from source message1 should be the part of the three target file names.
So, i used dynamic configuration three times.
But when i did end to end test, all the three files are creating with same name.
I explained you almost full scenario..
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
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.