[
https://issues.jboss.org/browse/JBIDE-14956?page=com.atlassian.jira.plugi...
]
Viacheslav Kabanovich commented on JBIDE-14956:
-----------------------------------------------
I thought that the key of route is 'service-name'.
Correct algorithm implemented in class org.jboss.soa.esb.actions.ContentBasedWiretap is
1) Key is equal to the value of "destination-name" if it is set;
2) otherwise, key is constructed of values of "service-category" and
"service-name".
I have sent pull request, where this algorithm is used; and the snippet from description
to this issue is added to tests.
ESB editor removes routes to the same service in ContentBasedRouter
destinations
--------------------------------------------------------------------------------
Key: JBIDE-14956
URL:
https://issues.jboss.org/browse/JBIDE-14956
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: esb
Affects Versions: 3.3.3.Final-SOA
Environment: JBDS 5, JBDS 6 with ESB Editor 1.3.1
Reporter: Martin Weiler
Assignee: Viacheslav Kabanovich
Fix For: 3.3.x, 4.1.0.CR1
When I open the following jboss-esb.xml with the ESB editor:
{code}
<action class="org.jboss.soa.esb.actions.ContentBasedRouter"
name="Route" process="process">
<property name="cbrAlias" value="Xpath"/>
<property name="ruleSet"
value="/rules/route-xpath.properties"/>
<property name="ruleLanguage"/>
<property name="ruleReload" value="true"/>
<property name="destinations">
<route-to destination-name="ALL-1"
service-category="Trade OTC" service-name="FTP Service"/>
<route-to destination-name="ALL-2"
service-category="Trade OTC" service-name="FTP Service"/>
</property>
</action>
{code}
and I modify something else this gets corrupted into:
{code}
<action class="org.jboss.soa.esb.actions.ContentBasedRouter"
name="Route" process="process">
<property name="cbrAlias" value="Xpath"/>
<property name="ruleSet"
value="/rules/route-xpath.properties"/>
<property name="ruleLanguage"/>
<property name="ruleReload" value="true"/>
<property name="destinations">
<route-to destination-name="ALL-1"
service-category="Trade OTC" service-name="FTP Service"/>
</property>
</action>
{code}
This lines disappears after switching ESB view XML / or saving:
{code}
<route-to destination-name="ALL-2"
service-category="Trade OTC" service-name="FTP Service"/>
{code}
I do need both <route-to> tags to point to the same ESB Service. It works in ESB
and I want Developer Studio to handle this properly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira