[jboss-jira] [JBoss JIRA] Created: (JBESB-331) checkMyParms() in CbrListener
Bernard Tison (JIRA)
jira-events at jboss.com
Fri Jan 5 07:37:27 EST 2007
checkMyParms() in CbrListener
-----------------------------
Key: JBESB-331
URL: http://jira.jboss.com/jira/browse/JBESB-331
Project: JBoss ESB
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Content Based Routing
Reporter: Bernard Tison
Assigned To: Mark Little
checkMyParams() in CbrListener checks for the existence of a child element <cbr> of element <XPathContentBasedRouter> in the generated jbossesb-listener.xml. This child element is not present, giving a ConfigurationException.
The attributes ruleSet and ruleLanguage are attributes of <XPathContentBasedRouter>, not of the child element <cbr>.
The following code in CbrListener fixes this problem (original code commented out):
protected void checkMyParms() throws ConfigurationException
{
super.checkMyParms();
// if (_config.getFirstChild(ListenerTagNames.CBR_TAG)==null) {
// _logger.error("Required child element " + ListenerTagNames.CBR_TAG + " not found in " + _config.getName() + ".");
// throw new ConfigurationException("Required child element " + ListenerTagNames.CBR_TAG + " not found.");
// } else {
// _ruleSet =_config.getFirstChild(ListenerTagNames.CBR_TAG).getAttribute(ListenerTagNames.RULE_SET_TAG);
// if (_ruleSet==null) {
// throw new ConfigurationException("Required attribute " + ListenerTagNames.RULE_SET_TAG + " not found.");
// }
// _ruleLanguage =_config.getFirstChild(ListenerTagNames.CBR_TAG).getAttribute(ListenerTagNames.RULE_LANGUAGE_TAG);
// }
_ruleSet =_config.getAttribute(ListenerTagNames.RULE_SET_TAG);
if (_ruleSet==null) {
throw new ConfigurationException("Required attribute " + ListenerTagNames.RULE_SET_TAG + " not found.");
}
_ruleLanguage =_config.getAttribute(ListenerTagNames.RULE_LANGUAGE_TAG);
}
This fix was tested with the simple_cbr quickstart.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list