Re: Throttle Camel Requests based on query param

2016-06-16 Thread yogu13
check Dynamically changing maximum requests per period @ http://camel.apache.org/throttler.html you can set the query param to exchange header and throller can pick this value from header. Regards, -Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Throttle-Camel-Reque

Re: Throttle Camel Requests based on query param

2016-06-16 Thread Taariq Levack
Hi, You can use the query param itself and throttle by header, or the choice EIP to decide based on your query param, what to set the header to. throttleValue Cheers On Thu, Jun 16, 2016 at 8:43 PM, Debraj Manna wrote: > Hi, > > I have a camel route like below:- > > from("jetty:http://lo

Re: FTP polling strategy fails

2016-06-16 Thread souciance
By the way, if I remove the pollStrategy reference in the ftp uri, everything works ok. -- View this message in context: http://camel.465427.n5.nabble.com/FTP-polling-strategy-fails-tp5784133p5784134.html Sent from the Camel - Users mailing list archive at Nabble.com.

FTP polling strategy fails

2016-06-16 Thread souciance
Hello, I have a standard route with a ftp uri as a consumer endpoint with a pollStrategy defined and added to the registry. However, I am getting the following error: Caused by: java.lang.IllegalArgumentException: Could not find a suitable setter for property: pollStrategy as there isn't a setter

Re: Camel logging

2016-06-16 Thread Doug Douglass
The Camel HTTP component[1] uses Apache Commons HttpClient[2], so you can try its logging configuration[3]. [1] http://camel.apache.org/http.html [2] https://hc.apache.org/httpclient-legacy/index.html [3] https://hc.apache.org/httpclient-legacy/logging.html On Thu, Jun 16, 2016 at 8:15 AM, mabahm

Throttle Camel Requests based on query param

2016-06-16 Thread Debraj Manna
Hi, I have a camel route like below:- from("jetty:http://localhost:/orchestratorservice";).process(processor); from("direct:setStatusToReadyToShip").to( "bean:orderHelper?method=setStatusToReadyToShip") I have gone through the throttle pattern. But

Re: Connecting to multiple JMS providers

2016-06-16 Thread Gabriel Soto
That was surprisingly easy. For some reason I missed that in the docs, but it is here: http://camel.apache.org/how-do-i-configure-endpoints.html#HowdoIconfigureendpoints-UsingSpringXML Thank you! Gabriel On Wed, Jun 15, 2016 at 12:18 AM, Matt Sicker wrote: > You can create two JmsComponent bean

Re: are camel routes non blocking

2016-06-16 Thread Matt Sicker
Some of the DSLs and components support async processing which looks to be non-blocking, but I don't have a full list of which ones are and aren't. On 23 May 2016 at 10:21, kumar5 wrote: > Hi > > I am using spring rest and calling camel routes (rest client camel route or > camel kafka producer )

RE: Only trigger route if condition is fulfilled?

2016-06-16 Thread jimi.hullegard
I solved it myself. In the initiation phase, it is not possible to stop the route because it hasn't come to that step yet. But setting autostartup to "false" in the RouteDefinition (from camelContext.getRouteDefinition) works. And then I have a background thread (ScheduledExecutorService) that c

Re: Camel logging

2016-06-16 Thread mabahma
nothing ?? -- View this message in context: http://camel.465427.n5.nabble.com/Camel-logging-tp5784095p5784121.html Sent from the Camel - Users mailing list archive at Nabble.com.

RE: Only trigger route if condition is fulfilled?

2016-06-16 Thread jimi.hullegard
Thankx Souciance. I guess I was a bit optimistic in my thinking that this might already be available out-of-the-box in Camel :) I will go with the first solution you mentioned, although I think that a RoutePolicy is more suitable for my needs, compared to having a separate route to manage the o

Re: Only trigger route if condition is fulfilled?

2016-06-16 Thread souciance
I think if you want to have that kind of fine tuning of the route stop/start mechanism it is better to have that control outside of the route. That is, control the route stop/start from another route, that way you can start/stop it based on some condition. Doing it this way doesn't require Camel to

XML Signature Validation : detached

2016-06-16 Thread rajani.kulkarni
Hi Team, I am working on XML signature validation. And here is my bean: My KeySel class extends DefaultKeySelector and I have overridden select method. Now I want to extract the routeid (I mean Exchange information) in my class. Is there any

RE: Only trigger route if condition is fulfilled?

2016-06-16 Thread jimi.hullegard
Hi Souciance, If I stop the route, how do I start it later? I want it to run again later if the stop-file is removed. I might just want to stop it for a few minutes, or I want to stop it "indefinitely" (like, months). Either way, I don't want to have to change the config and restart Camel for t

Re: Only trigger route if condition is fulfilled?

2016-06-16 Thread souciance
Hi, Depends, if you want to stop the route completely maybe use the controlbus component to send a stop action. If you use the java dsl, after your condition == true you can add something like this: .to("controlbus:route?routeId=&action=stop") If you just want to stop the route from proceeding

Only trigger route if condition is fulfilled?

2016-06-16 Thread jimi.hullegard
Hi, I would like an easy way to stop a route from processing any more messages, by defining some boolean condition so that the route should run only if the condition is true. The condition doesn't have to be connected in any way with the payload. Instead it could involve performing a http GET

Re: camel 2.16.2 distributed tracing

2016-06-16 Thread garybarker
Claus Ibsen-2 wrote > You may want to take a look at the new camel-zipkin component > http://camel.apache.org/camel-zipkin Claus, Is there a way to use the sleuth/dapper part of this solution without having a zipkin collector available. I would like to use the span processing to add the correlatio

Re: Camel training

2016-06-16 Thread Anton
Hi Souciance I am in the Copenhagen region and was going to do Camel training for a local organization. I've been using Camel for many years, and am passionate camel enthusiast. Please feel free to contact me directly if you wish to discuss further. Kind regards Anton On Mon, Jun 13, 2016 at 9:

Re: RuntimeCamelException:IllegalStateException:Unablefind BeanManager.Please ensure config CDI

2016-06-16 Thread Antonin Stefanutti
> On 15 Jun 2016, at 17:19, saysvishal wrote: > > Thanks astefanutti, appreciate you help! > > We are not using BeanManagerProvider but > javax.enterprise.inject.spi.BeanManager. Sorry I haven’t been clear. I meant that Camel CDI, prior to Camel 2.17.0, relies on DeltaSpike’s BeanManagerProvi