I have managed to create a MBean with JMX in a Tomcat application. The MBean is visible in jconsole and the contents can be changed from the application and the console. The managed content is loaded from a xml file. I would like to see the changes also in the xml file, so after a Tomcat restart the application can start with the changed content.
What should I do next to get the changes into the xml file with JMX?