You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2011/02/11 14:05:57 UTC

[jira] Resolved: (FELIX-2837) The configuration installer of fileinstall should not generate a random PID when adding a configuration for a Managed Service Factory.

     [ https://issues.apache.org/jira/browse/FELIX-2837?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger resolved FELIX-2837.
--------------------------------------

    Resolution: Won't Fix
      Assignee: Felix Meschberger

Sorry to deceive you both guys. But this cannot be implemented.

As per the Configuration Admin spec the actual PID of a factory configuration is unique and implementation dependent. So File Install has no influence on this value.

What File Install does, though, is adding a special property to the newly created configuration which allows the configuration to be related back to the cfg file.

This allows File Install to actually update an existing configuration object. And thus on a simple file update a new configuration with a new PID should actually not be created. If that would be the case, this would be a bug in File Install, which I would not expect at this time.

Thus on file delete, the actual configuration is also removed and thus on recreation of the file a new configuration is created with a new PID.

> The configuration installer of fileinstall should not generate a random PID when adding a configuration for a Managed Service Factory.
> --------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-2837
>                 URL: https://issues.apache.org/jira/browse/FELIX-2837
>             Project: Felix
>          Issue Type: Improvement
>            Reporter: Ioannis Canellos
>            Assignee: Felix Meschberger
>
> If I create a file org.apache.karaf.someservice-instance1.cfg then file install will create a configuration object with a pid of the form org.apache.karaf.someservice.b95c9421-77e8-474d-8083-7665a0cfcedf .
> I think that it would be much better if the configuration pid was org.apache.karaf.someservice-instance1.
> Especially when using Karaf shell commands for editing the configuration this becomes pretty annoying.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira