You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Naira & Kobo <le...@gmail.com> on 2010/11/12 07:56:00 UTC
Re: Cannot find the declaration of element 'routeContext'.
See sample route snippet I wrote that worked for me:
<?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.0.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
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<!-- ################# Rule Engines ############### -->
<routeContext id="ruleEngines"
xmlns="http://camel.apache.org/schema/spring">
<!-- preprocessor Rule Engine -->
<route id="preprocessorRuleEngine">
<from uri="localRequestJMS:queue:preprocessorRuleEngine"/>
<bean ref="rulesEngine" method="preprocess"/>
<onException>
<exception>java.lang.Exception</exception>
<handled><constant>true</constant></handled>
<to uri="localRequestJMS:queue:processorRuleEngine"/>
</onException>
</route>
</routeContext>
</beans>
--
View this message in context: http://camel.465427.n5.nabble.com/Cannot-find-the-declaration-of-element-routeContext-tp2851604p3261545.html
Sent from the Camel - Users mailing list archive at Nabble.com.