[
https://issues.jboss.org/browse/JBIDE-9217?page=com.atlassian.jira.plugin...
]
Viacheslav Kabanovich commented on JBIDE-9217:
----------------------------------------------
Programmers Guide for the JBoss ESB describes properties of ContentBasedRouter action as
follows:
destinations
Container property for the <route-to> configurations.
namespaces
Container property for the <namespace> configurations,
where required e.g. for the XPath ruleprovider.
That means that according to specification, the code should be like this
<action class="org.jboss.soa.esb.actions.ContentBasedRouter"
name="validateAndRoute">
<property name="cbrAlias" value="XPath"/>
<property name="destinations">
<route-to expression="//m:id > '0'"
service-category="student-esb-services"
service-name="AsyncSetAdvisorGraduateStudentService"/>
</property>
<property name="namespaces">
<namespace prefix="m"
uri="http://amentra.com/mentoring"/>
</property>
</action>
It is supported by ESB editor.
I suspect that runtime just collects all child elements <route-to> and
<namespace> wherever they are under ancestor <action> node, but that is not a
documented feature; and supporting such a feature in ui would really make hard time for it
since in implementing editor I relied heavily on structure described in Programmers
Guide.
Brian, would you please consider if sticking to the version of the action that I suggest
would solve the issue provided that it is ok in runtime?
I have found that ui inserts line <property name="ruleLanguage"/> - if it
is a bug, it is easy to fix.
I will copy this comment to SOA-2747 as well.
FunCBRRules Method for XPath Broken in Tooling
----------------------------------------------
Key: JBIDE-9217
URL:
https://issues.jboss.org/browse/JBIDE-9217
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: esb
Affects Versions: 3.2.0.Final
Reporter: Brian Fitzpatrick
Assignee: Viacheslav Kabanovich
Priority: Critical
Fix For: 3.2.1.CR2, 3.3.0.M3
Hey Slava - if you have time, can you look into this for the ESB editor in the 3.2.x
branch and trunk?
(from SOA-2747)
When adding an ContentBasedRouter with the following configuration in JBoss Developer
Studio, switching between Tree and Source view will remove the namespace tag.
<action class="org.jboss.soa.esb.actions.ContentBasedRouter"
name="validateAndRoute">
<property name="cbrAlias" value="XPath"/>
<property name="destinations">
<namespace prefix="m"
uri="http://amentra.com/mentoring" />
<route-to expression="//m:id > '0'"
service-category="student-esb-services"
service-name="AsyncSetAdvisorGraduateStudentService"/>
</property>
</action>
This results in the following after toggling and adding another action.
<action class="org.jboss.soa.esb.actions.ContentBasedRouter"
name="validateAndRoute">
<property name="cbrAlias" value="XPath"/>
<property name="ruleLanguage"/>
<property name="destinations">
<route-to expression="//m:id > '0'"
service-category="student-esb-services"
service-name="AsyncSetAdvisorGraduateStudentService"/>
</property>
</action>
Note that the namespace tag under property "destinations" has been removed by
the tooling.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira