PDA

View Full Version : New to SI: Outbound Channel Adapter - Specify Timestamp Target



wodka
Dec 23rd, 2009, 10:04 AM
Hi. I just joined the forum and I'm new to using SI. I have a process that uses the inbound/outbound channel adapters to simply copy a file from a source to a target. The source/target values are defined in a properties file. The process is working fine. However, I'd like to modify it to place each file in a timestamp target directory rather than a static target as it is now.

What I'm not clear on is how to intercept the outbound adapter and change the target before it complete the file move. Any help would be appreciated.

Thank you.

chudak
Dec 23rd, 2009, 10:25 AM
Post your existing configuration (use code tags) and any custom code you are already using.

iwein
Dec 26th, 2009, 02:40 AM
I think you should implement a FileNameGenerator. You can also create a feature request for this, it's not entirely unsensible to support out of the box :)