Re: Throttling: maximumRequestsPerPeriod problem

2012-04-09 Thread garrydias
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.

Re: Throttling: maximumRequestsPerPeriod problem

2012-03-27 Thread Christian Müller
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]

Re: Throttling: maximumRequestsPerPeriod problem

2012-03-27 Thread garrydias
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 -

Re: Throttling: maximumRequestsPerPeriod problem

2012-03-27 Thread garrydias
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

Re: Throttling: maximumRequestsPerPeriod problem

2012-03-26 Thread garrydias
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.

Re: Throttling: maximumRequestsPerPeriod problem

2012-03-26 Thread Christian Müller
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

Re: Throttling: maximumRequestsPerPeriod problem

2012-03-26 Thread garrydias
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

Re: Throttling: maximumRequestsPerPeriod problem

2012-03-25 Thread Christian Müller
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

Re: Throttling: maximumRequestsPerPeriod problem

2012-03-25 Thread garrydias
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

Re: Throttling: maximumRequestsPerPeriod problem

2012-03-25 Thread Christian Müller
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:

Re: Throttling: maximumRequestsPerPeriod problem

2012-03-23 Thread garrydias
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

Re: Throttling: maximumRequestsPerPeriod problem

2012-03-23 Thread Christian Müller
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

Re: Throttling: maximumRequestsPerPeriod problem

2012-03-22 Thread garrydias
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

Re: Throttling: maximumRequestsPerPeriod problem

2012-03-22 Thread Marco Westermann
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