RE: Apache camel restarting the route

2017-06-16 Thread Steve Huston
The only concept you're missing is that 'from' is not a one shot event. The route keeps running, taking whatever messages become available from the source queue. -Steve > -Original Message- > From: Mahesha999 [mailto:abnav...@gmail.com] > Sent: Friday, June 16, 2017 10:19 AM > To:

Multicast Timeout

2017-06-16 Thread bob.rog...@cigna.com
I am using multicast and have implemented AggregationStrategy java class which implements the TimeoutAwareAggregationStrategy interface. In the: public Exchange aggregate(Exchange oldExchange, Exchange newExchange) method I am grabbing the body of the newExchange and adding it to a list. I

Apache camel restarting the route

2017-06-16 Thread Mahesha999
I have a something as following: from("rabbitmq://...") .process(processor1) : .process(processorn) .process(SendToExternalAppProcessor) The SendToExternalAppProcessor.process() uses producer template to send the some request formed from the contents in the exchange

Re: ActiveMQ shuts down before Camel routes when stopping service in Windows

2017-06-16 Thread Zoran Regvart
Hi, I believe this to be an issue that can only be fixed at ActiveMQ, I've raised an issue[1] and created a pull request[2] with one way this can be addressed. zoran [1] https://issues.apache.org/jira/browse/AMQ-6706 [2] https://github.com/apache/activemq/pull/254 On Thu, Jun 15, 2017 at 3:15

AggregateRecoverChecker exchange duplicates

2017-06-16 Thread giannis_k
Hello, we noticed an issue in our production system where AggregateRecoverChecker produces duplicates. It seems that the cause for this issue was that we initially had the /useRecovery/ configuration disabled. Then at a later release we enabled the recovery functionality and on application

Re: inject OSGi service into Camel Route

2017-06-16 Thread Mark
Bart, Thank you very much. This gets me very close to a solution. Right now I have a couple RouteBuilder instances in my project and I use the element in my blueprint to get the RouteBuilder instances loaded. I assume I'll need to break this up and load the routes into the context

Re: inject OSGi service into Camel Route

2017-06-16 Thread Bart Horré
Hi, in the below code example you'll find a blueprint file containing a reference to the service which is then inserted in a camel route. This can of course also be done in Spring. I hope this is of any use to you. http://www.osgi.org/xmlns/blueprint/v1.0.0;>