on 06-14-2011 7:58 AM
Hi all,
In a Proxy to File scenario, At PI we are generating target file by using conversion of XML to Plain in file/sFTP adapter.
Here, i have to create 2 files(content of the file is common in 2 files) in same target directory.
Below are the approaches we tried:
1.Staging directory on servers - where we can Run a OS command to place the file in the archiving directory.
2. Configure 1 more receiver service interface, receiver agreement and receiver sFTP channel to send the file into both the directories at the same time.
Please suggest any other appraoches other than the above.
Regards,
Divya
Edited by: Divya_10 on Jun 14, 2011 10:30 AM
thanks for suggestions it helped us alot
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Divya
You have an additional option using same design and configuration objects.
Just change the interface determination inserting 2 times your receiver interface and the related interface mapping.
If the name of the 2 files has to be completely different (and not just the same name with appended a different timestamp in the file name itself), then I think you need to create 2 different receiver interfaces.
Regards,
Giuseppe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Since you are creating 2 files with same content in one directory, assume that either the files have different names or different extensions.
In that case, if using multimapping you will face an issue with dynamic filename as multimapping does not allow you to store more than one filename in the message header.
If you have the option of naming the files using variable substitution, then suggest you go for multimapping.
Other than this, the two other options that you have mentioned works fine. Only issue with using a script is its monitoring if the script fails.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
2. Configure 1 more receiver service interface, receiver agreement and receiver sFTP channel to send the file into both the directories at the same time.
go for this option / One receiver and two interface determinations, two receiver agreements will also help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Divya
If target folder is the same, you can try with a 1:n multimapping defining rules so that you will always create 2 messages.
You will need to use add timestamp as file construction mode to distinguish between those 2 files.
Regards,
Giuseppe
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 | |
23 | |
11 | |
9 | |
8 | |
5 | |
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.