A new blueprint-core bundle with support for env vars [1] is on vote.
In addition there is a fabric8-karaf-blueprint which is a blueprint
port of camel property placeholder support [2]


[1] https://issues.apache.org/jira/browse/ARIES-1311
[2] 
https://github.com/fabric8-quickstarts/karaf-camel-amq/blob/master/src/main/resources/OSGI-INF/blueprint/camel-context.xml#L28-L41


---
Luca Burgazzoli


On Tue, Sep 13, 2016 at 9:17 AM, souciance
<[email protected]> wrote:
> Hi,
>
> Does anyone know how you can access environment variables in blueprint xml
> syntax?
>
> In Camel you can write:
>
> @PropertyInject("{{env:EVENTBUS}}")
> private String eventbus;
>
> But I haven't found the equivalent for setting a property value based on an
> environment variable in blueprint. Is this possible?
>
> Thanks
> Souciance
>
>
>
>
>
> --
> View this message in context: 
> http://karaf.922171.n3.nabble.com/Access-environment-variables-from-blueprint-tp4047991.html
> Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to