Hi Riccardo,

what is happening in DEBUG log when you call the remove?

Maybe you are dealing with inflight exchanges here?

Can you try to instead just stop the routes?

-Ralf

On 3/27/20 2:20 PM, Modanese, Riccardo wrote:
Hi all,

     I'm experimenting with programmatically routes creation and removal (Camel 
version 2.17).
The routes are created and removed at runtime through my custom RouteBuilder 
instance and are consuming from ActiveMQ 5 (with virtual topic enabled).
Once a route is removed (*) all the subscriptions (for this specific route) to 
the broker are removed except for one.
So one subscription to the broker still remains active.

Unfortunately I have no simple test code to reproduce the behavior I'm seeing.

Has someone any idea if I'm missing something or can point me to the right 
direction?

Thank you.

Riccardo


(*)  
getContext().removeRouteDefinition(getContext().getRouteDefinition(routeId));

Reply via email to