Hello,
I's just checking out the CBR and found interesting feature from within CBR, namely property "object-paths". The documentation (Content Based Routing Guide.pdf) suggest to use the format
<property name="object-paths"> <object-path path="body.name" /> </property>
/** * @author <a * href="mailto:schifest@heuristica.com.ar">schifest@heuristica.com.ar</a> * @author kstam@jboss.com * @author kevin.conner@jboss.com */ public class ContentBasedWiretap extends AbstractActionPipelineProcessor { public static final String ROUTE_TO_TAG = "route-to"; public static final String OBJECT_PATH_TAG = "object-path"; public static final String OBJECT_PATH = "esb"; ... later in the file _messagePathList = new ArrayList<String>(); ConfigTree[] objectList = _config.getChildren(OBJECT_PATH_TAG); if (objectList != null) { for (ConfigTree curr : objectList) { try { String objectPath = curr.getRequiredAttribute(OBJECT_PATH); _messagePathList.add(objectPath); } catch (Exception e) { throw new ConfigurationException( "Problems with object path list", e); } } }
Apologies for this, it was changed as part of http://jira.jboss.com/jira/browse/JBESB-841 to make it consistent with the other uses within the ESB.
I have created a task to update the documentation, http://jira.jboss.com/jira/browse/JBESB-1783.