amigo amigo [
http://community.jboss.org/people/amigo111] created the discussion
"Problem with adding post-suffix to file after coping"
To view the discussion, visit:
http://community.jboss.org/message/581796#581796
--------------------------------------------------------------
I use fs-listener and fs-message-filter to copy file from first folder to second, when
file is added in first.
When i set input-suffix and post-suffix in fs-message-filter are equals, but anyway
post-suffix is added to input-suffix of file.
For example, when i add file '1.txt' to input folder, i get file
'1.txt.txt' to output folder.
The problem is in implementation of AbstractGatewayListener that has code
*void* processingComplete(
http://www.java2s.com/Open-Source/Java-Document/6.0-JDK-Core/io-nio/java/...
*File* fileIn,
http://www.java2s.com/Open-Source/Java-Document/6.0-JDK-Core/io-nio/java/...
*File* workingFile) {
http://www.java2s.com/Open-Source/Java-Document/6.0-JDK-Core/io-nio/java/...
*File* fileOK = *new*
http://www.java2s.com/Open-Source/Java-Document/6.0-JDK-Core/io-nio/java/...
*File*(_postProcessDirectory, fileIn.getName() +
_postProcessSuffix);
....
Can i any simple method to change this?
Or How i can redefine gateway class for fs-listener?
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/581796#581796]
Start a new discussion in JBoss ESB Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]