Hi,
I am using my camel routes on Karaf. Tried to keep routes in separate bundle
(just xmls in deploy folder) and tied them with in main
mycamelcontext.xml
Here are my files look like.
*mycamelcontext.xml*
http://www.springframework.org/schema/beans";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:osgi="http://www.springframework.org/schema/osgi";
xmlns:context="http://www.springframework.org/schema/context";
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/osgi
http://www.springframework.org/schema/osgi/spring-osgi.xsd
http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-2.5.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd";>
**
http://camel.apache.org/schema/spring";>
**
*routes.xml*
http://www.springframework.org/schema/beans";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:osgi="http://www.springframework.org/schema/osgi";
xmlns:context="http://www.springframework.org/schema/context";
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.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";>
http://camel.apache.org/schema/spring";>
But, I am not getting below exception while starting the bundle
'mycamelcontext.xml'
org.apache.camel.RuntimeCamelException: java.lang.IllegalArgumentException:
Cannot find RouteContext with id 'routes-id'.
Not sure what am I missing here. Can you guys throw some light?
Thanks,
Prathap
--
View this message in context:
http://camel.465427.n5.nabble.com/Karaf-org-apache-camel-RuntimeCamelException-java-lang-IllegalArgumentException-Cannot-find-RouteCon-tp5787066.html
Sent from the Camel - Users mailing list archive at Nabble.com.