We support Rules based routing using the Drools rule engine. The basic idea is you expose a DroolsComponent at some service/interface/operation endpoint in ServiceMix then let it perform rules based routing, or other actions as required.
You can deploy a DroolsComponent with a rule base which will be fired when it is invoked. The rule base is then in complete control over messge dispatching.
Then you can create your Drools rule base using whatever Drools mechanism you wish. For example here's the default Java semantic module to perform custom routing
Using the JBI language
Drools allows you to provide different DSLs (domain specific languages) so we have added a DSL for JBI. Here is an example of it in use
As you can see the <jbi:invoke> element will invoke a service endpoint; you can specify a service name, interface name and/or an operation name on this tag - they are all QNames using the namespace mapping of the XML document.
In addition the condition is an XPath expression. Again the XML namespaces in this document are available to the XPath expression.
2 Comments
Anonymous
ionolsen42 May we exchange links with your site? http://www_3_1.gmail.com/ www_3_1
http://www_3_2.gmail.com/ www_3_2
http://www_3_3.gmail.com/ www_3_3
http://www_3_4.gmail.com/ www_3_4
http://www_3_5.gmail.com/ www_3_5
http://www_3_6.gmail.com/ www_3_6
http://www_3_7.gmail.com/ www_3_7
http://www_3_8.gmail.com/ www_3_8
http://www_3_9.gmail.com/ www_3_9
http://www_3_10.gmail.com/ www_3_10
http://www_3_11.gmail.com/ www_3_11
Anonymous
ionolsen43 HI! I love this place! http://wiki.cubic.uni-koeln.de/cdkwiki/media/termlifeinsurance.html life insurance term
http://wiki.cubic.uni-koeln.de/cdkwiki/media/autoinsurancequote.html auto insurance term
http://wiki.cubic.uni-koeln.de/cdkwiki/media/carinsuranceonlinequote.html auto car
http://wiki.cubic.uni-koeln.de/cdkwiki/media/dentalinsurance.html dental low cost
http://wiki.cubic.uni-koeln.de/cdkwiki/media/autoinsurancecompany.html insurance quotes
http://wiki.cubic.uni-koeln.de/cdkwiki/media/carinsurancequote.html pet insurance