Hi all,

I have same issue as Christopher Love with @Value in my spring route
builder.

My camel context:
<camel:camelContext id="camelContext">
        <camel:contextScan />
</camel:camelContext>

@Named("IntegrationRouteBuilder")
public class IntegrationRouteBuilder extends SpringRouteBuilder {
     @Value("${filePolling}")
     private boolean filePolling;

     @Override
        public void configure() throws Exception {
                from("file:" + baseDir +
"/in").routeId("polling").autoStartup(filePolling)
                                .process(new Processor() {
                                        @Override
                                        public void process(Exchange exchange) 
throws Exception {
                                                     //BLABLA
                                        }
                                });
        }
}

Variable ${filePolling} is always = false even i set it to true.

Could you look in your code?

Regards,



--
View this message in context: 
http://camel.465427.n5.nabble.com/Issue-with-Camel-annotations-not-being-processed-OSGi-Blueprint-Javaconfig-tp5718606p5727791.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to