特定管理 > 網站維護 > Using Java Management Extensions (JMX) > Using the Loader MBean to Persist Configuration Changes
Using the Loader MBean to Persist Configuration Changes
When you use one or more of the Windchill MBeans to change a specific configuration setting in the system, that change is in effect only until you shut down the JVM that is being used when the configuration setting was changed. To save configuration changes that you have made through other MBeans so the changes extend beyond the life span of the server JVM, you can use the save operation from the Loader MBean.
The following example provides the steps required to change the values of attributes of MBeans and then persist those changes using the Loader MBean:
1. Access the MBeans tab as described in Accessing Windchill MBeans from JConsole, connecting to the Java process through which the changes can be made. Use the Loader MBean available through each connection to persist any changes made in that process.
If you want to persist changes made in multiple processes, access the Loader MBean from each process.
2. Select com.ptc from the tree in the left pane.
3. Select the desired MBean available under the com.ptc node and then select the Attributes node to display attributes in the right pane.
* 
Do not navigate to the MBeans listed under the Logging node. The MBeans listed in the tree under the Logging node allow you to examine and modify the log4j configuration within the running JVM. To persist changes to any log4j configuration, you must edit the appropriate log4j*.properties file instead of using the xconfmanager utility.
* 
In addition to setting attribute values from the Attributes node, you can also add or remove child MBeans, or change attribute values in child MBeans.
4. Navigate to and then change attribute values.
This action changes the values in the current Java process, but does not persist the change.
5. Select the Loader > Operations from the left pane.
The available operations display in the right pane and are also available nested below Operations in the left pane.
6. Select the save() operation.
This action saves all MBean changes that you have made to settings in this Java process. The changes are persisted over system restarts.
* 
If you are an advanced JMX user, you can also use the Loader MBean to persist settings that are outside the com.ptc note in the tree using the addInjectionTargetMBean() operation.
這是否有幫助?