[jboss-jira] [JBoss JIRA] (AS7-3336) Values set in OSGi ConfigAdmin do not get written to standalone.xml
Thomas Diesler (JIRA)
jira-events at lists.jboss.org
Tue Jan 17 10:55:19 EST 2012
[ https://issues.jboss.org/browse/AS7-3336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12659876#comment-12659876 ]
Thomas Diesler edited comment on AS7-3336 at 1/17/12 10:54 AM:
---------------------------------------------------------------
The test also deletes the configuration. Try commenting
{code}
config.delete();
{code}
and shutdown the server. I believe standalone.xml is not persisted on every change in the domain model.
was (Author: thomas.diesler):
The test also deletes the configuration. Try commenting
{code}
config.delete();
{code}
and shutdown the server. I believe standalone.xml is not persisted on every change.
> 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