Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] OSGi and parameters

For command line parameters I would use the System properties. As BJ
said, the CM service is nice for more static configuration data.

Kind regards,

     Peter Kriens

PR> Hello, 

PR> I would like to know what is the usual way of passing parameters to 
PR> "application" and/or "bundle" running in OSGi.

PR> Basically the case I'm trying to resolve is the following:
PR>         today in eclipse: a set of parameters are passed on startup (on 
PR> the command line), and those parameters are
PR>         then surfaced in eclipse through the Boot plugin. This gives a 
PR> uniform way for people to access parameters.

PR> How can I give the bundles access to the command line parameters, in a 
PR> nice way? 

PR> My current idea is to create a implementation depend service that would 
PR> surface parameters. 

PR> Any suggestions? Any ideas? Any comments?

PR>         PaScaL


-- 
Peter Kriens                              Tel. +46 30039800
Finnasandsvägen 22                        Fax. +46 30039805
SE-43933 Onsala                           Mob. +46705950899



Back to the top