On 17/12/2007, Hamlet84 <[EMAIL PROTECTED]> wrote:
>
> Hi...YAP (Yet Another Problem) hihiih
>
> In a camel component I create an RouteBuilder and then i add it to the camel
> context
> [..]
> RouteBuilder test= new HttpTest();
> context.addRoutes(test);
> [..]
>
> the HttpTest is
> public class HttpTest extends RouteBuilder {
>     public void configure() throws Exception {
>         this.from("jetty:http://0.0.0.0:8192/test/";)
>              .process(...)
>              .to("jbi:service:...");
>     }
> }
>
> In this way there is a jetty component that listen on this uri..
>
> But how i can disable this routebuilder?

There's not yet the capability to remove routes declared in a specific
RouteBuilder - though we welcome patches if you fancy helping out :)
http://activemq.apache.org/camel/contributing.html

Until then the easiest thing to do is to start/stop things at the
CamelContext level. i.e. create a separate CamelContext for each sets
of RouteBuilder objects you want to be able to stop.

-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com

Reply via email to