camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From waterback <mart...@innoq.com>
Subject Re: Getting rid of inflight changes
Date Wed, 02 Feb 2011 07:45:34 GMT

Hi,

yes, the state of a inflightexchange is stored in a Repository (i suppose as
long as they are "inflight", and if you're absolutely sure you want to get
rid of them you can access this repository with the following:

exchange.getContext().getInflightRepository().remove(exchange);

This should be used normally when you want to stop/suspend a route while
working within the route itself.
You definitely need the exchange-object to remove itself from the
repository.

As for the api the repository it won't betray it's other exchanges.

Actually i think it's in your best interest, when you handle your exchanges
where they are stuck.

Hope this helps you a bit.

Cheers,
Martin
-- 
View this message in context: http://camel.465427.n5.nabble.com/Getting-rid-of-inflight-changes-tp3366187p3367453.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message