Hi,

looking at this change, it looks like you "just" don't persist xml configuration(and as so making it read-only)
but that does not apply to the model itself for instance context.getResourceRegistrationForUpdate() would still work and not throw error that model is read only.

My impression was that we wanted to achieve also "read-only" model, probably this is task for the future...

Other than that, it looks good :)

--
tomaz



On Sun, Jul 8, 2012 at 1:15 PM, Kabir Khan <kabir.khan@jboss.com> wrote:
Brian asked me to get some feedback on this.

The following commit https://github.com/jbossas/jboss-as/commit/435c862b9514bfcf0a036bb2b916ac3dc63b4f4a implements the following new command line switches for https://issues.jboss.org/browse/AS7-4764:
Standalone:
--read-only-server-config

Domain:
--read-only-host-config
--read-only-domain-config

These work much the same as their 'standard' counterparts, e.g. --server-config etc. apart from:
*They allow an absolute path in addition to the relative path supported by --server-config etc.
*The file passed in will never be overwritten, however the other history files do get persisted as usual so you can make changes to the config and copy the standalone.last.xml file to use that the next time you want to boot from a read-only config

The reload operations now take the following parameters:
-- use-current-domain-config (domain controller only)
-- use-current-host-config (domain and host controllers)
-- use-current-server-config
The default value for all of these is false, and these parameters are only taken into account if --read-only-xxx-config was used. If false, the reloaded process is started with the initial, unchanged config that was passed in to --initial-xxx-config. If true, it uses the current model for the reloaded process (using the corresponding .last.xml file). The idea for the 'true' path being that you might want to reboot into admin-only mode to make some changes which should take effect once the process is put back into normal mode.




_______________________________________________
jboss-as7-dev mailing list
jboss-as7-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev