How can I read a myconfig.properties files in OSGi

View: New views
2 Messages — Rating Filter:   Alert me  

How can I read a myconfig.properties files in OSGi

by cameroon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

HI altogether,

I have a question, may be someone know the answer. I Have a bundle,  
that supposes to use  name/value pair from a properties files as a  
configuration issue.

here is an example of the  "myconfig.properties" file

#myconfig
name1=value1
name2=value2

and the values can change during the runtime of the bundle (note: I do  
not want to put my config stuff in the $FELIX-HOME/conf/
config.propeties of felix distribution). I will appreciate some links  
or examples or also tips that handle this issue in OSGi.

I am using Felix 2.0.


Thanks.
Best.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: How can I read a myconfig.properties files in OSGi

by Guo Du :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Oct 21, 2009 at 10:19 AM, Serge Emmanuel Pagop
<serge.pagop@...> wrote:
> and the values can change during the runtime of the bundle (note: I do not
> want to put my config stuff in the $FELIX-HOME/conf/config.propeties of
> felix distribution). I will appreciate some links or examples or also tips
> that handle this issue in OSGi.
>
> I am using Felix 2.0.
>
Hope this link helps for you:
http://felix.apache.org/site/apache-felix-configuration-admin-service.html

-Guo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...