RE: Inject system property value via blueprint

2016-09-02 Thread lichtin
See http://karaf.922171.n3.nabble.com/Environment-variables-and-Blueprint-tp4039607p4039613.html CLEMENT Jean-Philippe wrote > Ok... is there a way to use env variables other than via system variables? > > Regards, > JP > > -Message d'origine- > De : Jean-Baptiste Onofré [mailto: >

Re: Blueprint System Properties not resolved

2016-09-02 Thread Alex Soto
To clarify, I found was is causing the problem, but I don’t have a solution. I need to be able to use Quartz endpoints in Blueprint Camel routes, and at the same time, I need place holder substitution of System properties in the same Blueprint context. Somehow you can’t have both. Best

Re: Unable to use http://karaf.apache.org/xmlns/shell/v1.0.0

2016-09-02 Thread kotoole
https://issues.apache.org/jira/browse/KARAF-4695 -- View this message in context: http://karaf.922171.n3.nabble.com/Unable-to-use-http-karaf-apache-org-xmlns-shell-v1-0-0-tp4047826p4047850.html Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Inject system property value via blueprint

2016-09-02 Thread Alex Soto
I put them in the setenv file, something like: -Dhome.dir=$HOME Best regards, Alex soto > On Sep 2, 2016, at 11:00 AM, CLEMENT Jean-Philippe > wrote: > > Ok... is there a way to use env variables other than via system variables? > > Regards, > JP

Re: Blueprint System Properties not resolved

2016-09-02 Thread Alex Soto
OK, I found what breaks it! When I add this Camel route in a separate Blueprint XML in the same directory: http://www.osgi.org/xmlns/blueprint/v1.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xmlns:camel="http://camel.apache.org/schema/blueprint;

RE: Inject system property value via blueprint

2016-09-02 Thread CLEMENT Jean-Philippe
Ok... is there a way to use env variables other than via system variables? Regards, JP -Message d'origine- De : Jean-Baptiste Onofré [mailto:j...@nanthrax.net] Envoyé : vendredi 2 septembre 2016 16:19 À : user@karaf.apache.org Objet : Re: Inject system property value via blueprint Ha,

configuration property type with arrays

2016-09-02 Thread Leschke, Scott
Can one/how does one define a value in a property file such that the value is converted to an array of values (specifically a String[]) when using Configuration Property Types? I've been gradually moving my blueprint code over to Components and have been using CPTs which I first read about in

Re: Inject system property value via blueprint

2016-09-02 Thread Jean-Baptiste Onofré
Ha, ok understood. So, it's about env variables more than system variables. System variables for me are passed using -D on the JVM. Regards JB On 09/02/2016 03:41 PM, CLEMENT Jean-Philippe wrote: I'm not too sure it's the same need => at present time to get an environment variable in a cfg

Re: Blueprint System Properties not resolved

2016-09-02 Thread Alex Soto
Something interesting happened. When preparing an isolated blueprint.xml to post it here, I removed a lot of other stuff I had, reducing the XML to a bare minimum, and it now works! So, something else in the XML is conflicting, I don’t know what, but I will now add things one at a time, until

RE: Inject system property value via blueprint

2016-09-02 Thread CLEMENT Jean-Philippe
I'm not too sure it's the same need => at present time to get an environment variable in a cfg I have to modify the setenv (export KARAF_OPTS="-Dmy.variable=$MY_ENV_VARIABLE") then I may use it in a cfg (SOME_KEY=${my.variable}). But I have to "declare" each variable in the setenv scripts...

Re: Inject system property value via blueprint

2016-09-02 Thread Jean-Baptiste Onofré
OK, it sounds like this one then: https://issues.apache.org/jira/browse/KARAF-4609 Regards JB On 09/02/2016 03:22 PM, CLEMENT Jean-Philippe wrote: Ah, I mean more environment related such as "export MY_PROPERTY=something" the use it in Karaf via something like $[MY_PROPERTY]. I think we

Re: Blueprint System Properties not resolved

2016-09-02 Thread Jean-Baptiste Onofré
Do you use both cm and ext namespaces or only ext ? Can you share your blueprint.xml ? Thanks, Regards JB On 09/02/2016 03:21 PM, Alex Soto wrote: Same issue if run as standalone, I even tested adding a cfg file with the configuration entry, but the bundle fails to start and the value in

RE: Inject system property value via blueprint

2016-09-02 Thread CLEMENT Jean-Philippe
Ah, I mean more environment related such as "export MY_PROPERTY=something" the use it in Karaf via something like $[MY_PROPERTY]. I think we already had this discussion but I did not succeed in finding a corresponding Jira (?) Regards, JP -Message d'origine- De : Jean-Baptiste Onofré

Re: Blueprint System Properties not resolved

2016-09-02 Thread Alex Soto
Same issue if run as standalone, I even tested adding a cfg file with the configuration entry, but the bundle fails to start and the value in the configuration file does not seem to be honored. Best regards, Alex soto > On Sep 2, 2016, at 8:59 AM, Jean-Baptiste Onofré

Re: Blueprint System Properties not resolved

2016-09-02 Thread Jean-Baptiste Onofré
Do you have the issue only in Pax Exam or in Karaf standalone container as well ? I just tried with a simple blueprint and it works fine with ext and cm xmlns. Regards JB On 09/02/2016 02:49 PM, Alex Soto wrote: Hi JB, Yes, I saw that other thread, but it is still not working for me. I

Re: Blueprint System Properties not resolved

2016-09-02 Thread Alex Soto
Hi JB, Yes, I saw that other thread, but it is still not working for me. I printed the user.home value in the activation method of some other DS component, and is it correctly set to the user home directory. It only does not work when referenced in a Blueprint XML. I don’t know if I have

RE: Inject system property value via blueprint

2016-09-02 Thread CLEMENT Jean-Philippe
Hi JB, Does it also work for .cfg files? Regards, JP -Message d'origine- De : Jean-Baptiste Onofré [mailto:j...@nanthrax.net] Envoyé : mercredi 31 août 2016 15:49 À : user@karaf.apache.org Objet : Re: Inject system property value via blueprint Hi, you have to use the ext xmlns for