Hi

What is your use-case for the reason you want to do this?
You should often not do something like this, so want to hear more about why.
And what Camel version and what resources are you using for transaction?

On Sun, Dec 29, 2019 at 12:52 PM Mikhail Lukyanov <lukyanov...@gmail.com> wrote:
>
> Hello everyone
> Tell me, please, is there a way to kill pending transactions?
>
> Route freezes, after I kill transactions in InflightRepository
>
> cc.getInflightRepository().remove(exchange);
>
> But they remain pending. When I stop the route, it does not stop
> immediately because of a pending transaction remain
>
> int inflight=
> this.context.getInflightRepository().size(order.getRoute().getId());
> //there 0
> inflight += DefaultShutdownStrategy.getPendingInflightExchanges(order);
> //but there stil remain
>
> They are killed only after a forced stop of the route or after the timeout
>
>
> --
> *С наилучшими пожеланиями, Лукьянов Михаил*
> *Моб: **+7-909-69-71-547*



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

Reply via email to