camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: camel-kafka Consumer to stop reading new messages and process only inflight messages.
Date Wed, 12 Oct 2016 20:03:04 GMT
See about graceful shutdown
http://camel.apache.org/graceful-shutdown.html



On Wed, Oct 12, 2016 at 4:59 PM, Leo Prince <leoprincef@gmail.com> wrote:
> Hi Camel Users,
>
> We are using camel-kafka consumer to read message from Kafka.While
> performing Production deployment we kill this Java project and install a new
> jar. We use systemctl to manage java processes. While doing systemctl stop
> {java_process) I assume the inflight messages are lost. In camel route I am
> looking for something like stop processing new messages in Kafka and I can
> wait for all the inflight messages to complete and then stop the
> java_process in systemctl and deploy the new jar.
>
> Thanks!
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/camel-kafka-Consumer-to-stop-reading-new-messages-and-process-only-inflight-messages-tp5788693.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Mime
View raw message