[jboss-dev-forums] [JBoss ESB Development] - Problem with adding post-suffix to file after coping
amigo amigo
do-not-reply at jboss.com
Wed Jan 19 05:25:39 EST 2011
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/io/File.java.htm *File* fileIn, http://www.java2s.com/Open-Source/Java-Document/6.0-JDK-Core/io-nio/java/io/File.java.htm *File* workingFile) {
http://www.java2s.com/Open-Source/Java-Document/6.0-JDK-Core/io-nio/java/io/File.java.htm *File* fileOK = *new* http://www.java2s.com/Open-Source/Java-Document/6.0-JDK-Core/io-nio/java/io/File.java.htm *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&containerType=14&container=2032]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110119/458b43e2/attachment.html
More information about the jboss-dev-forums
mailing list