Hi, It worked like charm just by changing the extension of file from .properties to .cfg. Thanks a ton to all of you for quick reply.
Thanks & Regards, Md Shadab Ali From: Achim Nierbeck [mailto:[email protected]] Sent: Wednesday, October 09, 2013 12:33 PM To: [email protected] Subject: Re: custom properties file in karaf Hi, depends on how you used those properties so far. Do you plan on using the ConfigurationAdmin Service if so, just add a new file to the etc folder with the .cfg extension. It'll be picked up by the felix file-installer and transformed to configuration admin service properties. Otherwise if you're using those as system properties you'll need to configure the custom.properties with it. This file is also available at the etc folder. regards, Achim 2013/10/9 Ali, Mohammad <[email protected]<mailto:[email protected]>> 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. -- Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home> Commiter & Project Lead blog <http://notizblog.nierbeck.de/> 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.
