I would like to extend the current virgo (3.6.0) configurations part of the virgo admin webapp in order to edit values of configuration fields and then manage properly the bundles lifecycle to apply the changes...
I would like to know if there is already some API verbs in the current virgo libs to help me to write into the configuration artifacts ? If not does anyone can give me some advices to achieve this task ?
Chris Frost Messages: 230 Registered: January 2010 Location: Southampton, England
There are indeed already verbs available for this. They aren't documented as we just expose the MBeans from configAdmin over HTTP. You should have a look at the documentation for configAdmins JMX support and the current API calls being made by the admin console.
Also, when you make changes to the UI you should make it clear that changes will not be persisted across restarts. Adding support for changing config should be pretty straight forward and only require changes to the admin console but making those changes persist across restarts would require a lot more work.