camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Freeman Fang <freeman.f...@gmail.com>
Subject Re: Update camel route at runtime using config admin
Date Wed, 30 Nov 2011 02:40:32 GMT
Hi,

Seems you miss camelContext element outside the routers, something like
<camelContext>
       <routers>
......

Freeman
On 2011-11-30, at 上午3:02, mayank27 wrote:

> Hi,
>
> Using the example mentioned in
> http://camel.apache.org/loading-routes-from-xml-files.html, i tried  
> to load
> a route dynamically.
>
> Here's my xml file which holds the external routes that I intend to  
> load
> dynamically.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>       xmlns:osgi="http://camel.apache.org/schema/osgi"
>        xmlns:beans="http://www.springframework.org/schema/beans"
>       xsi:schemaLocation="
>       http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
>       http://camel.apache.org/schema/spring
> http://camel.apache.org/schema/spring/camel-spring.xsd
>       http://camel.apache.org/schema/osgi
> http://camel.apache.org/schema/osgi/camel-osgi.xsd
>       http://www.springframework.org/schema/osgi-compendium
> http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium.xsd
>       http://www.springframework.org/schema/osgi
> http://www.springframework.org/schema/osgi/spring-osgi.xsd
>       http://www.springframework.org/schema/context
> http://www.springframework.org/schema/context/spring-context.xsd">
>
>
> <routes xmlns="http://camel.apache.org/schema/spring">
>
>    <route id="bar">
>        <from uri="direct:bar"/>
>        <to uri="mock:bar"/>
>    </route>
>
>
> </routes>
>
> </beans>
>
>
> But, im getting the following exception :
> org 
> .springframework.beans.factory.parsing.BeanDefinitionParsingException:
> Configuration problem: Cannot locate BeanDefinitionParser for element
> [routes]
>
> Help would be appreciated.
>
> Thank you!
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Update-camel-route-at-runtime-using-config-admin-tp4965455p5033337.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com










Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message