Manually start route in java code

2010-04-08 Thread CyrilForce
this.name = name; } public void process(Exchange exchange) throws Exception { exchange.getContext().stopRoute(name); } } } Thanks, Cyril -- View this message in context: http://old.nabble.com/Manually-s

Re: Manually start route in java code

2010-04-08 Thread Claus Ibsen
     private final String name; > >                public StopRouteProcessor(String name) { >                    this.name = name; >                } > >                public void process(Exchange exchange) throws Exception { >                    exchange.getContext().stopRoute(na

Re: Manually start route in java code

2010-04-08 Thread CyrilForce
   public StopRouteProcessor(String name) { >>                    this.name = name; >>                } >> >>                public void process(Exchange exchange) throws Exception { >>                    exchange.getContext().stopRoute(name); >>                }

Re: Manually start route in java code

2010-04-08 Thread Claus Ibsen
;>                    .convertBodyTo(UpdateInventoryInput.class) >>>                    .to("direct:update"); >>>            } >>> >>>            public class StopRouteProcessor implements Processor { >>>                private final String name; >>> >>>              

Re: Manually start route in java code

2010-04-08 Thread CyrilForce
       //          .log("Doing manual update with file ${file:name}") >>>>                    .split(body().tokenize("\n")) >>>>                    .convertBodyTo(UpdateInventoryInput.class) >>>>                    .to("direct:update&

Re: Manually start route in java code

2010-04-08 Thread Claus Ibsen
y/manual?maxMessagesPerPoll=1") >>>>>                    // use noAutoStartup to indicate this route should >>>>>                    // NOT be started when Camel starts >>>>>                    .routeId("manual").noAutoStartup() >>>>>

Re: Manually start route in java code

2010-04-08 Thread CyrilForce
text even i include the path (http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd) in xsi:schemaLocation. Thanks Regards, Cyril -- View this message in context: http://old.nabble.com/Manually-start-route-in-java-code-tp28175201p28188199.html Sen

Re: Manually start route in java code

2010-04-09 Thread Claus Ibsen
because i was getting unable to > locate namespace  camelContext even i include the path > (http://camel.apache.org/schema/spring > http://camel.apache.org/schema/spring/camel-spring.xsd) in > xsi:schemaLocation. > > Thanks > > Regards, > > Cyril > > >