<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Content Base Routing
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/pete_p">Pete P</a> in <i>Beginner's Corner</i> - <a href="http://community.jboss.org/message/624466#624466">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Following is a snippet from JBoss's Services_Guide.pdf. p37</p><p>It is on the subject of Content based routing. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;action class="org.jboss.soa.esb.actions.ContentBasedRouter" name="ContentBasedRouter"&gt;</p><p>&#160;&#160;&#160;&#160; &lt;property name="cbrAlias" value="XPath"/&gt;</p><p>&#160;&#160;&#160;&#160; &lt;property name="ruleSet" value="/rules/xpath-rules.properties"/&gt;</p><p>&#160;&#160;&#160;&#160; &lt;property name="ruleReload" value="true"/&gt;</p><p>&#160;&#160;&#160;&#160; &lt;property name="destinations"&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;route-to destination-name="blue" service-category="BlueTeam" service-name="GoBlue" /&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;route-to destination-name="red" service-category="RedTeam" service-name="GoRed" /&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;route-to destination-name="green" service-category="GreenTeam" service-name="GoGreen" /&gt;</p><p>&#160;&#160;&#160;&#160; &lt;/property&gt;</p><p>&lt;/action&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Being new on this subject, I am trying to understand "how" the above actually works but struggling.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>As I understand, the listener picks up the ESB Message, which is "processed" by </p><p>the class org.jboss.soa.esb.actions.ContentBasedRouter.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>What is not clear in the documentation. is exactly what the class ContentBasedRouter</p><p>is doing. </p><p>Can someone clarfy this for me please. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Also is there a way I can get access to the source code for the ContentBasedRouter class.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Finally, in the above, how and where is the contents of the ESB message interrogated to</p><p>get the parameters held it. I guess this detail is in the ContentBasedRouter class.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Great subject ... just can't my humble head round it. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks for any help</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Pete</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/624466#624466">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Beginner's Corner at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>