Yes. It would be nice. I just have to find a free time =/
thank you too much
--
View this message in context:
http://camel.465427.n5.nabble.com/Throttling-maximumRequestsPerPeriod-problem-tp5586898p5628534.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Thanks Garry for pointing this out and also sharing your solution. I opened
a JIRA for it.
Do you consider providing a patch for it? In this case, the pages [2] and
[3] could be helpful for you.
[1] https://issues.apache.org/jira/browse/CAMEL-5126
[2] http://camel.apache.org/contributing.html
[3]
One more!
There´s no need to separate the routes due to a throttle nested in a split.
So my first spring xml works.
Thanx too much
regards
--
View this message in context:
http://camel.465427.n5.nabble.com/Throttling-maximumRequestsPerPeriod-problem-tp5586898p5599379.html
Sent from the Camel -
I found the problem.
It was caused by /garryHeader /header. It was null.
In fact, I was sending my body using ProducerTemplate.sendBody(Endpoint
endpoint, Object body). So /garryHeader /does not exist. I had to debug
org.apache.camel.processor.Throttler to discover that [1].
I don´t think the
i´ll change the route instead, so I can use the *ref* property.
that´s my xml updated:
http://camel.465427.n5.nabble.com/file/n5596345/throttler-test-context.xml
throttler-test-context.xml
(I´m still setting up the tests)
regards
--
View this message in context:
http://camel.465427.n5.nabble.
Yes, I missed this...
Could you also remove the following definitions because you don't use it:
Best,
Christian
On Mon, Mar 26, 2012 at 4:10 PM, garrydias wrote:
> These namespaces are already declared. The browser you´re using probably
> hides the namespace declarations. If you right click
These namespaces are already declared. The browser you´re using probably
hides the namespace declarations. If you right click my attached xml and
choose "Show Source Code" (or something like, depending on your browser) the
namespace will be shown.
I´ll checkout your test and post the results.
tha
The test also exists in Camel 2.9.1. Check out [1].
In your spring xml you didn't specify a default or the camel namespace
(only the schema location). This could be the issue. Try adding the
attributes:
xmlns="http://www.springframework.org/schema/beans"; xmlns:camel="
http://camel.apache.org/schem
Still throwing *Caused by: java.lang.IllegalStateException: The
maximumRequestsPerPeriod must be a positive number, was: 0*.
Are the namespaces in spring xml correct?
Thanks again
regards
--
View this message in context:
http://camel.465427.n5.nabble.com/Throttling-maximumRequestsPerPeriod-pro
Could you try to split up your route into two and test whether this works?
garryHeader
May be it's an issue when we define a throttler inside a splitter...
Best,
Christian
On Fri, Mar 23, 2012 at 2:45 PM, garrydias wrote:
thanx Christian
this is my spring xml:
http://camel.465427.n5.nabble.com/file/n5589498/throttler-test-context.xml
throttler-test-context.xml
About your tests, I couldn´t execute it because the some imports in your
source code make reference to older camel version. An example, the
org.apache.cam
Could you please provide the complete route to make sure you didn't use the
wrong namespace?
The unit test in [1] use this expression [2] and the test succeed.
[1]
https://svn.apache.org/repos/asf/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/processor/SpringThrottlerTe
Yes!
I´ve tried:
*
20
*
and
*
garryHeader
*
both are displaying:
/Caused by: java.lang.IllegalStateException: The maximumRequestsPerPeriod
must be a positive number, was: 0/
--
View this message in context:
http://camel.465427.n5.nabble.com/Throttl
Hi,
did you see, that the syntax changed with camel 2.8:
see: http://camel.apache.org/throttler.html
3
regards, Marco
Am 22.03.2012 16:37, schrieb garrydias:
Hi!
I´m trying to use Throttle in my xml CamelContext under 2.9 Camel version,
but when I set the /maximumRe
14 matches
Mail list logo