Achim, Thank you. I was going through the cookbook, just couldn't find good examples on the loading of configuration files. I think chapter 2 recipe 6 is what I'm looking for.
On Thu, Sep 25, 2014 at 4:29 PM, Achim Nierbeck <[email protected]> wrote: > Hi Mark, > > first of all there is a reasonable amount of samples available. Take a > look at the manual, and a bit of googling should show you some blogs etc. > Besides there are already two books covering Apache Karaf available. [1][2] > > In OSGi you usually use the Configuration Admin service for > configurations. For this you place your configuration file consisting of > properties in the etc folder, where the name of the file represents the id > of the service to configure (filename = service.pid.id.cfg). > So every time you change the configuration your service is re-configured > automatically for you. > > regards, Achim > > [1] - > https://www.packtpub.com/big-data-and-business-intelligence/learning-apache-karaf > [2] - > https://www.packtpub.com/application-development/apache-karaf-cookbook > > 2014-09-25 22:14 GMT+02:00 Mark Webb <[email protected]>: > >> >> I'm just getting into Karaf bundle development. I've had a hard time >> finding code examples to get going, so I am using maven to create skeleton >> projects. In my bundle, I want to load configuration information which >> I think I can from a file in the /etc folder. Where can I find a source >> code example on how to do this. >> >> > > > -- > > Apache Member > Apache Karaf <http://karaf.apache.org/> Committer & PMC > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & > Project Lead > blog <http://notizblog.nierbeck.de/> > > Software Architect / Project Manager / Scrum Master > >
