Hi Ali,

As Karaf leverages OSGI and more precisely OSGI Config Admin, you can use
this approach to externalize such properties. Here is a description about
what you should do :
http://www.liquid-reality.de/display/liquid/2011/09/23/Karaf+Tutorial+Part+2+-+Using+the+Configuration+Admin+Service

Regards,




On Wed, Oct 9, 2013 at 8:54 AM, Ali, Mohammad <[email protected]>wrote:

> Hi,****
>
> ** **
>
> I am migrating my application from felix to apache karaf. Currently I am
> providing my application related properties such as database details etc in
> system.properties. I want to use a saterate properties file say
> myApp.properties for this.****
>
> Is there a way to make karaf read the myApp.properties and make these
> properties available to bundles from karaf startup.****
>
> ** **
>
> Any help will be highly appreciated. ****
>
> ** **
>
> Thanks & Regards,****
>
> Shadab Ali****
>
> ** **
>
> This e-mail (and any attachments), is confidential and may be privileged. It 
> may be read, copied and used only
> by intended recipients. Unauthorized access to this e-mail (or attachments) 
> and disclosure or copying of its
> contents or any action taken in reliance on it is unlawful. Unintended 
> recipients must notify the sender immediately
> by e-mail/phone & delete it from their system without making any copies or 
> disclosing it to a third person.
>
>
>


-- 
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io

Reply via email to