JBoss Community

Problem with adding post-suffix to file after coping

created by amigo amigo in JBoss ESB Development - View the full discussion

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(File fileIn, File workingFile) {
  File fileOK = new 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

Start a new discussion in JBoss ESB Development at Community