[
https://issues.jboss.org/browse/AS7-3336?page=com.atlassian.jira.plugin.s...
]
Thomas Diesler edited comment on AS7-3336 at 1/17/12 10:57 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.
You could also set a breakpoint in the test and use the CLI to check whether the config
makes it into the domain model. If so, one must look how/when the domain model is
persisted to standalone.xml
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 in the
domain model.
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