[jboss-jira] [JBoss JIRA] (AS7-3336) Values set in OSGi ConfigAdmin do not get written to standalone.xml

David Bosschaert (JIRA) jira-events at lists.jboss.org
Tue Jan 17 09:53:18 EST 2012


David Bosschaert created AS7-3336:
-------------------------------------

             Summary: Values set in OSGi ConfigAdmin do not get written to standalone.xml
                 Key: AS7-3336
                 URL: https://issues.jboss.org/browse/AS7-3336
             Project: Application Server 7
          Issue Type: Bug
          Components: OSGi
    Affects Versions: 7.1.0.CR1b
            Reporter: David Bosschaert
            Assignee: Thomas Diesler


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:
{noformat}        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);{noformat}

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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list