Hi,

Yes, use OSGi standard ConfigAdmin service you can do it.  That said, you can 
configure your application bundle with property-placeholder and define 
necessary properties there, then you can have a "persistent-id".cfg file in 
$KARAF_HOME/etc to specify the properties.
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋



On 2013-10-9, at 下午2:54, Ali, Mohammad 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.
> 
> 

Reply via email to