JBESB-454 reversed: input-suffix is required
--------------------------------------------
Key: JBESB-2063
URL:
https://jira.jboss.org/jira/browse/JBESB-2063
Project: JBoss ESB
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: Rosetta
Affects Versions: 4.4
Reporter: Ryan Hochstetler
JBESB-454 modified AbstractFileGateway and to permit the omission of the input-suffix on
a fs-message-filter. This appears to have been undone in changeset 14322 by using
ConfigTree.getRequiredAttribute() which throws
....
Caused by: org.jboss.soa.esb.ConfigurationException: Required configuration property
'inputSuffix' not defined on config
uration '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)
I tried working around the issue by providing a single space as the input-suffix. This
generated a different exception:
...
Caused by: org.jboss.soa.esb.ConfigurationException: Must specify postProcessSuffix
at
org.jboss.soa.esb.listeners.gateway.FileGatewayListener$IgnoreFile.<init>(FileGatewayListener.java:218)
at
org.jboss.soa.esb.listeners.gateway.FileGatewayListener.<init>(FileGatewayListener.java:68)
... 52 more
I specified a post processing suffix by adding the post-suffix attribute ( meaningless
since I had specifed post-delete="true") to the fs-message-listener element, but
I still received the same exception complaining about the lack of a postProcessSuffix.
While it may seem simple enough to just change AbstractFileGateway.java:313 to call
ConfigTree.getAttribute(), I think that there is a deeper issue since the
FileGatewayListener.IgnoreFileFilter fails to construct, even though I'm providing the
requested attribute (which has a hard-coded default....).
sample config:
<fs-bus busid="foo_gw" >
<fs-message-filter directory="/h/data/foos"
work-suffix=".esbWorking" post-delete="true"
error-directory="/h/data/foos/error" error-suffix=".error" />
</fs-bus>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira