You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by khong07 <he...@gmail.com> on 2013/02/19 14:03:37 UTC
Re: Issue with Camel annotations not being processed [OSGi,
Blueprint, Javaconfig]
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.