Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: karaf-config
    • Labels:
      None

      Description

      Up to now, Karaf uses Felix FileInstall to poll files in the etc folder and load the properties containing in the files (the files respect the pid.cfg format) in the ConfigAdmin service.
      On the other hand, Karaf manipulate ConfigAdmin via the config:* commands and is able to flush back the properties in the files in this commands.

      I propose two improvements around ConfigAdmin:

      • we could create a Karaf Config Service on top of ConfigAdmin to be able to choose and change the storage backend of configuration. For instance, replace/concats the etc folder with a JDBC or LDAP backend. We could implement something similar to JAAS with a kind of ConfigModule.
      • the config:* commands shouldn't be responsible to writing the files. The config:* commands could use the Karaf Config Service. The Karaf Config Service will be responsible to updating the ConfigAdmin service, and flush the changes to the storage backend.

        Activity

        Hide
        Jean-Baptiste Onofré added a comment -

        I think I wasn't clear in my previous comment.

        The Karaf Config Service is only responsible of the ConfigAdmin storage, and it implements the PersistenceManager ConfigAdmin interface.

        Show
        Jean-Baptiste Onofré added a comment - I think I wasn't clear in my previous comment. The Karaf Config Service is only responsible of the ConfigAdmin storage, and it implements the PersistenceManager ConfigAdmin interface.
        Hide
        Christian Schneider added a comment -

        I think we can delay this to 3.1

        Show
        Christian Schneider added a comment - I think we can delay this to 3.1
        Hide
        Christian Schneider added a comment -

        I think this is resolved with the new config admin and file install versions that do the persistence themselves.

        Show
        Christian Schneider added a comment - I think this is resolved with the new config admin and file install versions that do the persistence themselves.

          People

          • Assignee:
            Unassigned
            Reporter:
            Jean-Baptiste Onofré
          • Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development