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
private final String name;
>
> public StopRouteProcessor(String name) {
> this.name = name;
> }
>
> public void process(Exchange exchange) throws Exception {
> exchange.getContext().stopRoute(na
public StopRouteProcessor(String name) {
>> this.name = name;
>> }
>>
>> public void process(Exchange exchange) throws Exception {
>> exchange.getContext().stopRoute(name);
>> }
;> .convertBodyTo(UpdateInventoryInput.class)
>>> .to("direct:update");
>>> }
>>>
>>> public class StopRouteProcessor implements Processor {
>>> private final String name;
>>>
>>>
// .log("Doing manual update with file ${file:name}")
>>>> .split(body().tokenize("\n"))
>>>> .convertBodyTo(UpdateInventoryInput.class)
>>>> .to("direct:update&
y/manual?maxMessagesPerPoll=1")
>>>>> // use noAutoStartup to indicate this route should
>>>>> // NOT be started when Camel starts
>>>>> .routeId("manual").noAutoStartup()
>>>>>
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
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
>
>
>