Hi Sam,
If you are talking about configuration properties for your bundles then
you should consider using the config admin service.
See:
http://www.liquid-reality.de/display/liquid/2011/09/23/Karaf+Tutorial+Part+2+-+Using+the+Configuration+Admin+Service
Karaf also allows to access the properties from etc/system.properties as
System.getProperty("...")
Christian
Am 07.08.2012 17:20, schrieb Sam Liu:
Hi guys,
I have a few OSGi bundles written using Equinox, and they were
deployed under the Equinox framework. Now I am trying to deploy them
under Karaf. However, I have some properties that these bundles would
read from the /configuration/config.ini file under the Equinox
framework before the bundles start. Under Karaf, I am having troubles
to find the place/file to store those bundle properties.
I tried to follow some online posts, and but they seem to be a bit
complicated than how Equinox framework handles this. Is there a
particular file that I can just put these bundle properties in? I also
tried to create a mybundlename.cfg file in the /etc folder. However,
it didn't work. Could anyone please tell me what I should do?
Many thanks!
Sam
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
Talend Application Integration Division http://www.talend.com