Hi

Camel 2.6 has a new method on CamelContext to load routes from XML files
http://camel.apache.org/loading-routes-from-xml-files.html



On Thu, Jan 13, 2011 at 5:42 PM, bfischer <[email protected]> wrote:
>
> Hi all,
>
> first let me mention that Camel is a very good pice of software.
>
> Right now I'm trying to (re-)load routes like explained
> http://svn.apache.org/viewvc?view=revision&revision=1040085
> jaxb-integration-test . Basics are working - but adding a bit more complex
> route features like  the things went odd. BTW, some route works if I load
> them from a "normal" Camel context (Spring based).
>
> After looking around and debugging I found that loading from a normal Spring
> based Camel context and from such external route definition xml file (like
> explained behind the link above) leads to different values in the field
> "outputs" of class RouteDefinition which causes the validation of this
> "outputs" in ProcessorDefinition.hasOutputs() to fail in the second
> scenario.
>
> Reason seems to me that during loading a route from Spring based camel
> context the routes are somehow preprocessed or corrected during
> CamelContextFactoryBean.afterPropertiesSet() (see comment at lines 309ff in
> this class). In contrast this preprocessing doesn't happen for the other
> loading scenario.
> Unfortunately I can't figure out how to solve or go around it. Instead I
> have to ask if someone can give me some hints how to load such routes from
> "external" files.
>
> TIA
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Loading-routes-from-XML-files-with-Camel-2-4-0-tp3340082p3340082.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to