[
https://issues.jboss.org/browse/AS7-3336?page=com.atlassian.jira.plugin.s...
]
Thomas Diesler commented on AS7-3336:
-------------------------------------
The test also deletes the configuration. Try commenting the
{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