camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olivier.Roger" <>
Subject Throttler in a Choice ?
Date Fri, 29 Oct 2010 14:47:07 GMT

Hello Camel,

I am using Camel 2.4 and writting my first Java DSL route
I would like to translate the following route from Spring DSL:

			    <simple>${header.JMSPriority} &lt; 5</simple>
                    <throttle maximumRequestsPerPeriod="50"
                        <to ref="nsResolved" />
                    <to ref="nsResolved" />

Here is what I did :

    public void configure() throws Exception {
                .when(simple("header.JMSPriority >= 5"))

In both case I can use otherwise() because I dont have a ChoiceDefinition
Like that I get a ThrottlerDefinition, which implements block, so I should
close is with end() I suppose. 
In that case I get a ProcessDefinition not a ChoiceDefinition.

Am I doing something wrong here ?

Thanks for your help,

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message