on 06-15-2009 7:27 AM
Hello,
I want to add the time stamp in the file name in JAVA map.
Actually we are directly writing the file on to the file system from Java map and also giving its output to other map.
So we need when we write the file on the file system the file name should be ABC_timestamp.
Can anyone help me how to do this in Java Map.
Thanks and Regards
Hemant
Hi,
>>>Actually we are directly writing the file on to the file system from Java map and also giving its output to other map.
are you sure you want to do this?
this is highly inadvisable as mappings do not support restarts and any error handling
further more what if the mapping will crash but the file will be created?
if you restart the mapping you will get a second file?
I'd recomment not doing anything like that - maybe think about your scenario once more ?
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Micheal,
But my scenario is I have three XSLT map processing one after another.
I have to store the input payload plus all the output of these XSLT on the file system and final output also before sending it to Reciever.
Scenario is like this:
Input>PI
-->File System -->File System -->>FS -->>FS
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.