Hi All,

Would anyone know if this is possible to do with the Camel Throttler? Here is 
the routing:

--- from AbstractRouteBuilder---

from("rabbitmq:bufferedExchange?connectionFactory=rabbitConnectionFactory&autoDelete=false&queue=bufferQueue")
                                .startupOrder(startOrder)
                                  .process(exchange ->
                                                                {
                                                                                
exchange.getIn().setHeader("rabbitmq.DELIVERY_MODE", 2);

                                                                }
                                                })
                                
.to("direct:mesageReceiver?block=true&timeout=30000");

--- from a concrete Route Builder implementation that extends the 
AbstractRouteBuilder---

from("direct:mesageReceiver")
                   .log("Receiving on throttled route ${body}")
                                .throttle(1)
                                .timePeriodMillis(15000)
                                .to("bean:messageProcessingBean");

The throttle is needed here in order to prevent the messageProcessingBean to 
overwhelm a web service endpoint that it's calling. The requests tend to be 
rather big and the WS is quite slow.

What I'm seeing at the moment with the above is that my rabbitmq consumers have 
been stopped after the first message has gone through but after the 15sec time 
period nothing has started up again, so no more messages are coming through. Is 
the above config not suited to what I want to do with the routes or am I 
missing something here? If not I can just have a route builder that doesn't use 
the AbstractRouteBuilder it'd just mean I have to set the delivery mode header 
in the concrete route builder.


Thanks,
Valdis
Vhi Group DAC (Vhi) is a holding company for insurance and healthcare services, 
which include Vhi Healthcare DAC, Vhi Insurance DAC, Vhi Health Services DAC 
and Vhi Investments DAC. Vhi Healthcare DAC trading as Vhi Healthcare and Vhi 
Insurance DAC trading as Vhi Insurance are regulated by the Central Bank of 
Ireland. Vhi Healthcare is tied to Vhi Insurance DAC for health insurance in 
Ireland which is underwritten by Vhi Insurance DAC. Vhi Healthcare is tied to 
Zurich Life Assurance plc for Vhi Life Term Insurance and Vhi Mortgage 
Protection which are underwritten by Zurich Life Assurance plc. Vhi Healthcare 
is tied to Collinson Insurance Solutions Europe Limited for MultiTrip Travel 
Insurance and Vhi Dental Insurance which are underwritten by Great Lakes 
Insurance SE and for Vhi International Health Insurance which is underwritten 
by Collinson Insurance Europe Limited. For more information about the Vhi Group 
please go to: https://www.vhi.ie/about-vhi.

Tá Vhi Group DAC (Vhi) ina chuideachta sealbhaíochta le haghaidh seirbhísí 
árachais agus seirbhísí cúram sláinte, lena n-áirítear Vhi Healthcare DAC, Vhi 
Insurance DAC, Vhi Health Services DAC agus Vhi Investments DAC. Déanann Banc 
Ceannais na hÉireann rialáil ar Vhi Healthcare DAC, ag trádáil dó mar Vhi 
Healthcare, agus ar Vhi Insurance DAC, ag trádáil dó mar Vhi Insurance. Tá Vhi 
Healthcare ceangailte le Vhi Insurance DAC le haghaidh árachas sláinte in 
Éirinn, rud atá frithgheallta ag Vhi Insurance DAC. Tá Vhi Healthcare 
ceangailte le Zurich Life Assurance plc le haghaidh Árachais Saoil de chuid Vhi 
agus Árachas Cosanta Morgáiste de chuid Vhi atá frithgheallta ag Zurich Life 
Assurance plc. Tá Vhi Healthcare ceangailte le Collinson Insurance Solutions 
Europe Limited le haghaidh Árachas Taistil Ilturais agus Árachas Fiaclóireachta 
de chuid Vhi atá frithgheallta ag Great Lakes Insurance SE agus le haghaidh 
Árachas Sláinte Idirnáisiúnta de chuid Vhi atá frithgheallta ag Collinson 
Insurance Europe Limited. Chun tuilleadh faisnéise a fháil faoi Ghrúpa Vhi, 
tabhair cuairt ar: https://www.vhi.ie/about-vhi.

This e-mail and any files transmitted with it contain information which may be 
confidential and which may also be privileged and is intended solely for the 
use of the individual or entity to whom it is addressed. Unless you are the 
intended recipient you may not copy or use it, or disclose it to anyone else. 
Any opinions expressed are that of the individual and not necessarily that of 
the Vhi Group. If you have received this e-mail in error please notify the 
sender by return.

Reply via email to