You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Reto Bachmann-Gmür <re...@trialox.org> on 2008/10/09 17:33:07 UTC
configuring services using command-line
With the webconsole I can set service properties on
http://localhost:8080/system/console/configMgr, how do i do this on the TUI?
Cheers,
reto
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: configuring services using command-line
Posted by "W.B. Garvelink" <ba...@gmail.com>.
I created a tui command for the config admin at work (can't open
source it unfortunately). I register a single shell command which uses
sub-commands for "list", "view", "create", "update", "remove" and
"set-value". Its a little over 500 loc including comments and imports.
It isn't particularly user-friendly, requiring the pid for every
action, but it gets the job done. A full strength cmadmin command
would require a bit more, but a basic one can be cobbeled together in
an afternoon.
We're on Java 6 here, so I added an exec-script command which takes cm
url and passes it to javax.script to run. The CmAdmin service and
others are set in the script context. Our configuration heavy-lifting
is all done in javascript, the cm-admin command is for ad-hoc changes
only.
HTH,
Barend
On 10/14/08, Martin Thelian <Ma...@gmx.at> wrote:
> Hi!
>
> Felix Meschberger schrieb:
>> Reto Bachmann-Gmür schrieb:
>>
>>> With the webconsole I can set service properties on
>>> http://localhost:8080/system/console/configMgr, how do i do this on the
>>> TUI?
>>>
>> There is currently no Shell Service support for the Configuration Admin
>> Service.
>>
> A commandline CM tool for Apache Felix and Equinox is available here:
> https://opensource.luminis.net/confluence/display/SITE/OSGi+Configuration+Admin+command+line+client
>
> Regards,
> Martin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>
Re: configuring services using command-line
Posted by Martin Thelian <Ma...@gmx.at>.
Hi!
Felix Meschberger schrieb:
> Reto Bachmann-Gmür schrieb:
>
>> With the webconsole I can set service properties on
>> http://localhost:8080/system/console/configMgr, how do i do this on the TUI?
>>
> There is currently no Shell Service support for the Configuration Admin
> Service.
>
A commandline CM tool for Apache Felix and Equinox is available here:
https://opensource.luminis.net/confluence/display/SITE/OSGi+Configuration+Admin+command+line+client
Regards,
Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: configuring services using command-line
Posted by Felix Meschberger <fm...@gmail.com>.
Hi Reto,
Reto Bachmann-Gmür schrieb:
> With the webconsole I can set service properties on
> http://localhost:8080/system/console/configMgr, how do i do this on the TUI?
There is currently no Shell Service support for the Configuration Admin
Service.
My biggest issue at the time of implementing the Configuration Admin
service was, that I had no clue of how to easily implemented
configuration editing (honestly I still don't have a concrete clue ;-)
), which is why I added Configuration Admin support to the web console.
Of course, as always, patches are very welcome ;-)
Regards
Felix
>
> Cheers,
> reto
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org