You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by mikek753 <mi...@gmail.com> on 2012/07/20 01:46:27 UTC

What would be the right way to develop Web console just for PID props changes?

hi,

I need a very simple way for a User to update PID (configuration) property
values over Web.
Yes, Karaf Web Console can do it, but it's way to complicated for end user,
who needs just set/change values for custom bundles like EndPoint config and
etc.
The properties are defined by <cm:property-placeholder>
All "my" PIDs are pre defined.

What would be right way to implement it?

Thanks.


--
View this message in context: http://karaf.922171.n3.nabble.com/What-would-be-the-right-way-to-develop-Web-console-just-for-PID-props-changes-tp4025258.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: What would be the right way to develop Web console just for PID props changes?

Posted by mikek753 <mi...@gmail.com>.
thank you for the answer

How to get access to the karaf shell commands context from my bundle?
This is to be able execute exposed to karaf shell commands.

Example sniplet would help me a lot.

Mike..



--
View this message in context: http://karaf.922171.n3.nabble.com/What-would-be-the-right-way-to-develop-Web-console-just-for-PID-props-changes-tp4025258p4025305.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: What would be the right way to develop Web console just for PID props changes?

Posted by "ajs6f@virginia.edu" <aj...@virginia.edu>.
You can see a nice example of one way of setting up Karaf shell commands here:

http://svn.apache.org/viewvc/karaf/trunk/shell/console/src/test/java/org/apache/karaf/shell/commands/

I found that useful-- perhaps you will.

---
A. Soroka
Online Library Environment
the University of Virginia Library

On Fri, Jul 20, 2012 at 3:00 PM, mikek753 <mi...@gmail.com> wrote:
> hello,
>
> thank you for the reply.
> Would you provide a little more info? Please.
>
> How to make karaf command call from my code?
> how to process response to extract list of CM by PID  properties , key-value
> pairs?
>
> Any link to example code would help me a lot.
>
> Mike.
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/What-would-be-the-right-way-to-develop-Web-console-just-for-PID-props-changes-tp4025258p4025260.html
> Sent from the Karaf - User mailing list archive at Nabble.com.

Re: What would be the right way to develop Web console just for PID props changes?

Posted by mikek753 <mi...@gmail.com>.
hello,

thank you for the reply.
Would you provide a little more info? Please.

How to make karaf command call from my code?
how to process response to extract list of CM by PID  properties , key-value
pairs?

Any link to example code would help me a lot.

Mike.



--
View this message in context: http://karaf.922171.n3.nabble.com/What-would-be-the-right-way-to-develop-Web-console-just-for-PID-props-changes-tp4025258p4025260.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: What would be the right way to develop Web console just for PID props changes?

Posted by Guillaume Nodet <gn...@gmail.com>.
If you install the http feature, you should be able to register a servlet
as an OSGi service without the full web console.
You'll have full control over what is displayed.

On Fri, Jul 20, 2012 at 1:46 AM, mikek753 <mi...@gmail.com> wrote:

> hi,
>
> I need a very simple way for a User to update PID (configuration) property
> values over Web.
> Yes, Karaf Web Console can do it, but it's way to complicated for end user,
> who needs just set/change values for custom bundles like EndPoint config
> and
> etc.
> The properties are defined by <cm:property-placeholder>
> All "my" PIDs are pre defined.
>
> What would be right way to implement it?
>
> Thanks.
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/What-would-be-the-right-way-to-develop-Web-console-just-for-PID-props-changes-tp4025258.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 
------------------------
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
FuseSource, Integration everywhere
http://fusesource.com