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