Hi, There are 2 ways to do this.
a> Static: You do not get rid of the interceptor (i.e the interceptor does get invoked but you eject immediately if a header value (boolean) is set in the payload. This will allow you to switch the interceptor code on/off on demand. b> Dynamic: You stop to the route, modify the route and re-load the route without the interceptor. The camel context has API's to add/modify/remove routes in a running camel context. The side-effect of this is that the route is unavailable for a small period of time. Hope this helps. Cheers, Ashwin... ----- --------------------------------------------------------- Ashwin Karpe Apache Camel Committer & Sr Principal Consultant FUSESource (a Progress Software Corporation subsidiary) http://fusesource.com Blog: http://opensourceknowledge.blogspot.com CamelOne 2011: http://fusesource.com/camel2011 --------------------------------------------------------- -- View this message in context: http://camel.465427.n5.nabble.com/How-to-remove-interceptors-tp4431339p4432115.html Sent from the Camel - Users mailing list archive at Nabble.com.