XMBeans support persistence and are in 3.2.
Chief Technology Officer
JBoss Group, LLC
Barlow, Dustin wrote:
> Has anyone added persistence to the SystemPropertiesService? IE, I want the
> changes made to system/global level properties (via JMX) to be persisted to
> the file that they came from or possibly written to a single delta file that
> on startup of JBoss would override the properties coming from the non-URL
> (and maybe even URL) based property file location(s).
> I notice that the load method in the SystemPropertiesService code doesn't
> keep the source of where the property came from with the property itself, so
> that's why i thought maybe the delta file would be a decent approach for
> persisting changes with minimal impact on the existing code base.
> If this hasn't been done yet, and I was interested in added the persistence
> functionality, what is the sanctioned approach for JMX/MBean persistence in
> the 3.2 series? I'm aware that there is a new MBean base in the 4.0 series
> that will do persistence, but I wasn't sure if this has been (or planned to
> be) backported to 3.2.1. It also wasn't clear to me if those new MBeans
> would naturally extend persisting the service based settings to also include
> persisting property changes in this case.
> Would anyone else benefit from this feature?