As your camel context is created by yourself, it make sense that the Blueprint annotations don’t work as you expected.
-- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On March 29, 2015 at 12:03:36 PM, alexey-s (alex...@mail.ru) wrote: > Hi > Strange error. > > How to test BlueprintPropertyInjectRoute use @PropertyInject. > If you are using OSGi Blueprint, annotations work. > > Write > > SimpleRegistry registry = new SimpleRegistry(); > registry.put("serviceProperties", properties); > > CamelContext camelContext = new OsgiDefaultCamelContext(bundleContext, > registry); > PropertiesComponent pc = camelContext.getComponent("properties", > PropertiesComponent.class); > pc.setLocation("ref:serviceProperties"); > > camelContext.addRoutes(builder); > camelContext.start(); > > Annotations do not work. > > > Aleksey > In the old works. > > String propVal = CamelContextHelper.parseText(getContext(), "{{" + propName > + "}}")); > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Annotations-are-not-working-in-RouteBuilder-tp5764966.html > > Sent from the Camel - Users mailing list archive at Nabble.com. >