...
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.
...