I really like this idea. This would (in addition) also change another
problem discussed a time ago about setting karaf.home and karaf.data via
the Main method. Therefore +1. I don't think that I find any time for this,
but tbh I don't consider it critical. This is only an karaf-internal
improvement. Therefore we can also include it without any problems into
karaf-3.1.0.

Kind regards,
Andreas

On Wed, Nov 30, 2011 at 19:32, David Jencks <[email protected]> wrote:

> 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