XPath statements are connected through configuration settings stored in the jboss-esb.xml file. The service configuration below shows an example service configuration fragment. (In this example, the service is listening to a Java Message Service queue.)
<service>
category="MessageRouting"
name="YourServiceName"
description="CBR Service">
<listeners>
<jms-listener name="CBR-Listener"
busidref="QueueA" maxThreads="1">
</jms-listener>
</listeners>
<actions>
<action class="org.jboss.soa.esb.actions.ContentBasedRouter"
name="YourActionName">
<property name="ruleSet" value="JBossESBRules.drl"/>
<property name="ruleReload" value="true"/>
<property name="destinations">
<route-to destination-name="xml-destination"
service-category="category01"
service-name="jbossesbtest1" />
<route-to destination-name="serialized-destination"
service-category="category02"
service-name="jbossesbtest2" />
</property>
<property name="object-paths">
<object-path esb="body.test1" />
<object-path esb="body.test2" />
</property>
</action>
</actions>
</service>