Hi

Can you try SNAPSHOT as we have fixed an issue with RouteBuilders not
being fully post processed by Spring.
See CAMEL-1663.


On Mon, Jul 6, 2009 at 11:26 PM, tfredrich<tfredr...@yahoo.com> wrote:
>
> We recently upgraded from Camel-M1 to Camel-M2.  Using Spring XML to
> configure the context using the package element, our context looks like:
>
> <?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:camel="http://camel.apache.org/schema/spring";
>       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";>
>
>        <camel:camelContext id="camelContext1">
>                <camel:package>com.xyz.route.impl</camel:package>
>                <camel:package>com.xyz.abc.route</camel:package>
>        </camel:camelContext>
>
> ...
>
> Our RouteBuilder implementations do not have a default constructor--opting
> instead to force the context to be auto-wired via SpringInjector.  This
> worked in M1, but does not work in M2--which calls the default constructor.
>
> I notice SpringInjector.java was changed for M2 (revision #781314) to remove
> the auto-wire functionality.  Is that because it was redundant?  What am I
> missing in order to have the auto-wire behavior in M2?
>
> Thanks much,
> --Todd
> --
> View this message in context: 
> http://www.nabble.com/CamelContext-No-Longer-Auto-Wires-Via-Package-Element--tp24363086p24363086.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to