[ 
https://issues.apache.org/jira/browse/FELIX-581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12601375#action_12601375
 ] 

Felix Meschberger commented on FELIX-581:
-----------------------------------------

> However, Preferences and Metatype are not really coupled, so you may retrieve 
> MetaType information for:

I think you mean Configuration Admin and Metatype. But you are right they are 
not coupled. But they share the internal data model. The intent is to have the 
Metatype service describe the configuration for a Management Agent -- a 
configuration manager GUI like the Web Console -- to render the input UI such 
that the result of data entry is then usable as a configuration for the 
ManagedService[Factory] services.

> 1) any bundle; or
> 2) for the bundles that registered a ManagedService or ManagedServiceFactory;

This is in fact, what the Configuration display of the Web Console does, but 
the other way around: All meta type information is gathered and the 
Configuration Admin is asked for existing configuration relating to the meta 
type information.

Thus -- IIRC -- only services are configurable which provide meta type 
information. All other configuration/services is not configurable through the 
Web Console right now. But as I said in my first comment, it might be usefull 
to present a generic GUI for ManagedService[Factory] services with no 
accompanying meta type information.

> 1) pax-web may have an incorrect metatype file:
> org.xml.sax.SAXException: Fatal Error: URI=null Line=1: Content is not 
> allowed in prolog.

What exact bundle are you looking at ? My inspection of the pax-web-service and 
pax-web-bundle bundles reveals that neither as a metatype.xml file or a 
MetatypeProvider service. I may be wrong, though.

> 2) ManagedServiceFactory instances cannot be configured because the code does 
> not properly handle how to create and later
> display configurations for these instances (i.e. the instance needs to use 
> the OCD from the factory).

The current Web Console _can_ configure instances of ManagerServiceFactory 
instances exactly by looking at the OCD of the factory.

> Allow creating configuration for managed services and service factories
> -----------------------------------------------------------------------
>
>                 Key: FELIX-581
>                 URL: https://issues.apache.org/jira/browse/FELIX-581
>             Project: Felix
>          Issue Type: Improvement
>          Components: Web Console
>    Affects Versions: webconsole-1.0.0
>            Reporter: Dieter Wimberger
>
> The web console does not support to create configurations for:
> 1) managed services (which did not register any themselves); and
> 2) managed service factories (for service instances).
> An example for 1) is the pax-web service: at the moment there is no way to 
> add a configuration for it using the web console.
> As of 2) I think that a factory may have multiple Configuration objects 
> associated, each of them configuring one service instance (this way its 
> possible to configure, create and delete instances by configuration).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to