fs listener input suffix
blep Sep 9, 2008 9:28 AMHi,
I tried to remove the input-suffix from the fs-listener config but I got during deployment:
Caused by: org.jboss.soa.esb.ConfigurationException: Required configuration property 'inputSuffix' not defined on configuration 'listener'. at org.jboss.soa.esb.helpers.ConfigTree.getRequiredAttribute(ConfigTree.java:242) at org.jboss.soa.esb.listeners.gateway.AbstractFileGateway.checkMyParms(AbstractFileGateway.java:313) at org.jboss.soa.esb.listeners.gateway.AbstractFileGateway.<init>(AbstractFileGateway.java:89) at org.jboss.soa.esb.listeners.gateway.FileGatewayListener.<init>(FileGatewayListener.java:45) ... 55 more
So I tried to set it to an empty string with the same result.
Then I came in the forum to check if anybody met this issue or asked for this feature and I read http://www.jboss.com/index.html?module=bb&op=viewtopic&t=116412 and found the feature request JBESB-454.
So I checked in the source code and I found the changes:
public class FileGatewayListener extends AbstractFileGateway {
.......
public FileGatewayListener(ConfigTree config) throws ConfigurationException, RegistryException, GatewayException {
super(config); ---------> Line 45
/*
* JBESB-454 allowed gateways to pull files with any extension. Obvious
* security issue, but we are explicit about this in the docs and users
* should beware.
*/
if ((_inputSuffix == null) || (_inputSuffix.equals(""))) {
/*
* If no suffix, then inputDir must be different from outputDir
* or we go into an infinite loop. Already checked through
* checkMyParams.
*/
_inputFileFilter = null;
/*
* If no input suffix, then we must have a work suffix and we
* must ignore worker files when sourcing new input files, or
* we end up in an infinite loop.
*/
_ignoreFileFilter = new IgnoreFile(_workingSuffix, _errorSuffix, _postProcessSuffix);
} else
_inputFileFilter = new FileEndsWith(_inputSuffix);
}The AbstractFileGateway base class constructor is invoked prior to any treatment about the possibility to not set input-suffix (invoking super() in line 45), so it seems to be normal to get the exception.
So is it a jbossesb.xml setting problem? Do I have to set it differently when I want a FS listener without any input-suffix? Is it a jbossesb problem?
Regards,
Brice