-
1. Re: Need Content Based Router After XSLT Transformation
alanchen Dec 19, 2011 1:41 AM (in response to alanchen)to implement this function, the previous JBoss SOA may set the following configuration in JBoss-esb.xml file.
<action class="org.jboss.soa.esb.actions.ContentBasedRouter" name="ContentBasedRouter">
<property name="cbrAlias" value="XPath"/>
<property name="destinations">
<namespace prefix="soapenv" uri="http://schemas.xmlsoap.org/soap/envelope"/>
<namespace prefix="hel" uri="http://jboss.org/ws/helloworld"/>
<route-to service-category="Proxy_Basic1" service-name="Proxy1" expression="//arg0[@id='1']"/>
<route-to service-category="Proxy_Basic2" service-name="Proxy2" expression="//arg0[@id='2']"/>
</property>
</action>
-
2. Re: Need Content Based Router After XSLT Transformation
kcbabo Dec 19, 2011 9:17 AM (in response to alanchen)Transformers should focus solely on transforming data and they should not be concerned with routing. If you want to route based on the content of the message, you should add a Camel routing service to your application. We don't have a quickstart for this yet, but I think it would be a good idea to add one. Would you mind filing a JIRA (https://issues.jboss.org/browse/SWITCHYARD) requesting this feature? I will put it on the schedule for our current release (0.4).
-
3. Re: Need Content Based Router After XSLT Transformation
alanchen Dec 19, 2011 6:36 PM (in response to kcbabo)Keith, I create a feature request in JIRA. You can check it.
Key: SWITCHYARD-596
-
4. Re: Need Content Based Router After XSLT Transformation
kcbabo Dec 20, 2011 9:17 AM (in response to alanchen)Thanks, Alan. We will get this done by the end of 0.4. I'm assuming this is related to the application in the other forum thread about proxying. If so, you already have a Camel route in that application. The next step would be to expand the Camel route by adding <choice> and <when> to configure your content-based routing rules. The CBR page on the Camel site has an example of what that should look like. Just in case you wanted to get a head start before we can add a specific quickstart.
-
5. Re: Need Content Based Router After XSLT Transformation
alanchen Dec 20, 2011 5:06 PM (in response to kcbabo)Thanks, Keith. I will have a look about the CBR page on the Camel site.