THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||||
---|---|---|---|---|
| ||||
from("direct:start") .choice() .when().ruby("$request.headers['user'] == 'admin'").to("seda:adminQueue") .otherwise() .to("seda:regularQueue"); |
And a Spring DSL sample as well:
Code Block | ||||
---|---|---|---|---|
| ||||
<route>
<from uri="direct:start"/>
<choice>
<when>
<ruby>$request.headers['user'] == 'admin'</ruby>
<to uri="seda:adminQueue"/>
</when>
<otherwise>
<to uri="seda:regularQueue"/>
</otherwise>
</choice>
</route>
|
Include Page | ||||
---|---|---|---|---|
|