Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
xml
xml
    <route>
        <from uri="direct:start"/>
        <choice>
            <when>
                <javaScript>request<python>request.headers['user'] == 'admin'</javaScript>python>
                <to uri="seda:adminQueue"/>
            </when>
            <otherwise>
                <to uri="seda:regularQueue"/>
            </otherwise>
        </choice>
    </route>

...