One of the early design goals of geronimo was to avoid needing any system 
properties to be set.  To handle "where are we" type questions we had a 
ServerInfo service that knows what the home and base directories are and can 
resolve uris against them.

I think it would be useful to have such a service in karaf as well.  In 
addition I'd like it to be able to supply the String[] command line arguments 
karaf was started with.

I was thinking this could be in the org.apache.karaf.info package and that 
could be exported from the framework.  This service could be registered by the 
startup code.

At the moment I'm just thinking about providing the service.  I haven't looked 
into changing all uses of the home and base directory system properties to use 
such a service instead; I think that in principle it would be a good idea but I 
don't know if I'll have enough time for it right now.

thoughts?

thanks
david jencks

Reply via email to