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.

Reply via email to