Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-3336

Values set in OSGi ConfigAdmin do not get written to standalone.xml

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 7.1.0.CR1b
    • OSGi
    • None

    Description

      When a configuration value gets set in the OSGi Configuration Admin Service this value should get persisted in the configadmin section of standalone.xml.

      The ConfigurationAdminTestCase (in as7 testsuite/integration/basic) contains this code:

              Configuration config = configAdmin.getConfiguration(ConfiguredService.SERVICE_PID);
              assertNotNull("Config not null", config);
              try
              {
                  Dictionary<String, String> configProps = new Hashtable<String, String>();
                  configProps.put("foo", "bar");
                  config.update(configProps);

      When running this test case with AS7 running I can see that it is run in the server.
      I was expecting the foo=bar configuration to appear in the configadmin section of standalone.xml, but it doesn't appear there.

      Attachments

        Activity

          People

            tdiesler@redhat.com Thomas Diesler
            dhildenb@redhat.com David Hildenbrand
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: