PDA

View Full Version : Unregistering FileSource keeps listening until bus reset!



qmx
Sep 9th, 2008, 12:17 PM
Hi Folks

I've tried to unregister an InboundChannelAdapter with a FileSource as input.


bus.unregisterEndpoint("test");

The message bus shows that the InboundChannelAdapter was removed / unregistered (bus.getEndpointNames()), but the file source is still polling the path! I've workarounded it with:


bus.stop();
bus.start();


Is this expected behaviour? :confused:

Cheers!